in reply to Re: Construct command portable way
in thread Construct command portable way
Of course, the multiple argument form of system isn't all that portable, either. On Windows, system(@ARGS) is system("@ARGS"), so you need to take proper care of quoting. On more unixish operating systems, you cannot quote the commands if you're going to use system(LIST), so some more care than in the OP is needed.
Of course it would be nice if Win32 system() knew when to add double quotes around strings...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Construct command portable way
by ikegami (Patriarch) on May 07, 2009 at 10:26 UTC | |
by Corion (Patriarch) on May 07, 2009 at 10:46 UTC | |
by ikegami (Patriarch) on May 07, 2009 at 11:12 UTC | |
by repellent (Priest) on May 07, 2009 at 20:32 UTC | |
by parv (Parson) on May 08, 2009 at 01:35 UTC | |
|
Re^3: Construct command portable way
by afoken (Chancellor) on May 07, 2009 at 07:17 UTC | |
by Corion (Patriarch) on May 07, 2009 at 07:26 UTC | |
by afoken (Chancellor) on May 07, 2009 at 09:12 UTC |