Split the doubled and plain backslash cases in the quoting test
Before adoption: this commit came in with the history the project adopted, so no landing records it.
escapeArg only doubles a backslash that precedes a quote or ends the argument, the same rule as syscall.EscapeArg, and @ is not a cmd metacharacter so it is not caret-escaped. The Windows expectations here still asked for both. Checked by round-tripping each entry through cmd.exe into a program's argv: all ten come back byte for byte.
authored by Cyrus · committed by Junegunn Choi · parent d4b6ba7 · Browse files · 1 file+6 added−6 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+6 added−6 removed
- other:+6 added−6 removed