system { $args[0] } @args; is not subject to shell escapes. Cheers@args = ( "echo surprise" ); exec @args; # subject to shell escapes # if @args == 1 exec { $args[0] } @args; # safe even with one-arg list
In reply to Re: system commands with spaces
by PodMaster
in thread system commands with spaces
by dpuu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |