in reply to Re^9: quoting issue with system command (Win32)
in thread quoting issue with system command
I respectfully disagree. Isn't the basic problem on Windows that the Windows API (i.e. CreateProcess) does simply not allow for several individual command line arguments to be passed to a program (as it is possible on Unix)? All that CreateProcess allows to be specified is a single string (lpCommandLine) — so I don't really see any advantage of using CreateProcess with respect to quoting issues, compared to using system().
If there was any way to properly emulate Unix semantics (i.e. separate arguments) on Windows to get around quoting issues etc., I'm pretty sure the Makers of Perl would have utilized that possibility...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: quoting issue with system command (Win32)
by John M. Dlugosz (Monsignor) on May 13, 2009 at 21:48 UTC |