Consider the following PowerShell code:
@"
"@.GetEnumerator() | %{[int]$_}
On my computer this outputs
13
10
which are the decimal representation of the ASCII control characters for carriage return and line feed, respectively.
The same code executed on AppVeyor outputs just a single number:
10
In other words, there seems to be variation between the characters PowerShell uses in here strings across systems. I expected the source to be [System.Environment]::newline
but the same environment AppVeyor environment that output the single character in the here string, output
13
10
for [System.Environment]::newline
. [System.Environment]::newline
doesn't seem to be the source for newlines in here strings.