는 다음 PowerShell에서 코드를 생각해 보자.
The same code executed on AppVeyor outputs just a single number
:10
즉은, PowerShell을 시스템에서 여기 문자열에 사용하는 문자 사이에 변화가있을 것으로 보인다. 나는 소스가 [System.Environment]::newline
에 대한 [System.Environment]::newline
하지만 the same environment AppVeyor environment that output the single character in the here string, output
13
10
을 것으로 예상. [System.Environment]::newline
은 여기 문자열에서 개행 문자의 소스가 아닌 것 같습니다.
. GetEnumerator() | % {[int]'$ _} "|"{@} " sc Test1.ps1; "@" "'''''n'n'"@. GetEnumerator() | % {[int]'$ _} "| sc Test2.ps1; . \ Test1.ps1 <#10#>; . \ Test2.ps1 <#13, 10#>'' – PetSerAl
감사합니다. @PetSerAl. [ "AppVeyor가 Windows에서 LF (\ n) 결말을 가진 파일을 체크 아웃하고 있습니다]"(http://help.appveyor.com/discussions/problems/1119-allow-changing-git-autocrlf-setting) 기본적으로 . – alx9r