in reply to system commands with spaces
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: system commands with spaces
by dpuu (Chaplain) on Apr 09, 2004 at 16:46 UTC |