Commit 9e86cd0
committed
on Windows, empty command-line arguments require quotes
Unix-like OSs pass an array of strings to processes as the command line
arguments. Empty arguments do not require special treatment.
By contrast, Windows uses a single string to pass all arguments to the
process. The process parses the string to construct argv[]. To pass an
empty argument, quotes are required.
Note that this is unrelated to any additional parsing a shell might perform.1 parent c7bb936 commit 9e86cd0
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
0 commit comments