(echo.exe
在 Windows 上使用 Git(MSYS2))
# expands to an invalid ADS-ish path
PS D:\path> echo.exe :bar
D:\path\:bar
# expands with double quote
PS D:\path> echo.exe ":bar"
D:\path\:bar
# expands with backquote
PS D:\path> echo.exe "`:bar"
D:\path\:bar
# expands with wsl and cmd, so not MSYS2 related
PS D:\path> wsl -e "echo" ":bar"
D:\path\:bar
PS D:\path> cmd /c "echo" ":bar"
D:\path\:bar
# not expands with single quote
PS D:\path> echo.exe ':bar'
:bar
# not expands if not starts with colon
PS D:\path> echo.exe "foo:bar"
foo:bar
# not expands if not spawns new process
PS D:\path> ":123"
:123
PS D:\path> echo ":123"
:123
迄今为止的研究: