Skip to content
Discussion options

You must be logged in to vote

The cmd one is a terrible workaround to an issue with PowerShell:

# Why .cmd over .exe: PSNativeCommandArgumentPassing = 'Windows' results in a behavior
# where passing bare quotes to CreateProcess() is impossible. This prevents us from
# passing "*" as "*" to coreutils and instead will be given as a bare *.
# This causes it to treat it as a glob pattern. "*.cmd" files however are automatically
# treated as PSNativeCommandArgumentPassing = 'Legacy', which preserves quotes.
# It is the only possible workaround and the only way coreutils can work at all.

(In the future this will prob…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@levicki
Comment options

Answer selected by lhecker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants