Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^6: Poll: Is your $^X an absolute path? (system @list)by xdg (Monsignor) |
on Aug 18, 2006 at 13:55 UTC ( [id://568154]=note: print w/replies, xml ) | Need Help?? |
I think the safe thing is to always surround the first argument with double-quotes if more than one argument is provided and it doesn't already seem to have double quotes. (If only one argument is provided, we have to assume the user provided a valid command line on the current platform.) So, ignoring error reporting, something like this:
On reflection, that seems simple enough that maybe we can get some p5p person to patch it. Some references about how spaces are handled in program names: -xdg Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
In Section
Meditations
|
|