In Powershell, when I run either of the commands below:
echo "abc" | clip
echo "abc" > clip
and paste the output into an editor, then a new line has been appended:
abc
<newline>
How can input be sent to the clip command without having a trailing newline character?
(This happens in Powershell version 5.1 - extracted from $PSversionTable
)