Windows PowerShell 5.1 在文件没有 BOM 时按 ANSI 读取。注释里的 em-dash 不影响执行,但这个仓库对 .bat 已经有纯 ASCII 约束,.ps1 没理由例外。
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Parses every .ps1 in the repository and reports syntax errors.
|
# Parses every .ps1 in the repository and reports syntax errors.
|
||||||
#
|
#
|
||||||
# Why this exists: most of this project's PowerShell was written on a Mac, where
|
# Why this exists: most of this project's PowerShell was written on a Mac, where
|
||||||
# no parser is available. "It looks right" is not a check — a single stray
|
# no parser is available. "It looks right" is not a check -- a single stray
|
||||||
# character stops the Windows installer from running at all, and there is no way
|
# character stops the Windows installer from running at all, and there is no way
|
||||||
# to find that out except on Windows.
|
# to find that out except on Windows.
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user