Closed goreliu closed 7 years ago
Some problems ...
$ wcmd dir /a
Volume in drive C is SYSTEM
Volume Serial Number is 6E7D-F000
Directory of c:\
File Not Found
$ wcmd 'dir /a'
Volume in drive C is SYSTEM
Volume Serial Number is 6E7D-F000
Directory of c:\Users\goreliu
16/08/15 23:59 <DIR> .
16/08/15 23:59 <DIR> ..
...
Houch... this is going to hit everywhere, especially for wcmd. At this point I even start to wonder if some heuristics trying to identify filenames would not be a "good" idea (in a "less bad than all the others" way). Although even something as simple as only quoting when it seems needed because of e.g. space in the arg might help a lot.
25