A newline is getting added to the output when running echo even if I tell it not to (with -n flag). It also looks like Write-Out doesn't support -NoNewLine.
Steps to reproduce
Expected behavior
> echo 'hello' | base64
aGVsbG8K
> echo -n 'hello' | base64
aGVsbG8=
Actual behavior
> echo 'hello' | base64
aGVsbG8K
> echo -n 'hello' | base64
aGVsbG8K
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 7.1.3
PSEdition Core
GitCommitId 7.1.3
OS Darwin 19.6.0 Darwin Kernel Version 19.6.0: Tue Jan 12 22:13:05 PST 2021; root:xnu-6153.141.16~1/RELEASE_X86_64
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
A newline is getting added to the output when running
echoeven if I tell it not to (with-nflag). It also looks likeWrite-Outdoesn't support-NoNewLine.Steps to reproduce
Expected behavior
Actual behavior
Environment data