[ILUG] Perl Question.

Kevin O'Riordan kor at compsoc.com
Wed Jun 8 13:22:13 IST 2005


> > As Niall pointed out, you could probably join the arguments together
> > as a single string before calling system() with that single argument.  
> > Then the shell would get to parse the line ...

> As the man page you quoted points out, the shell is only involved when 
> the command line for system contains shell metacharacters. Martin's 
> didn't so his perl program won't use the shell.

According to the bash manpage, an unquoted space character itself is a
shell metacharacter.  A little testing shows that you're right though --
the shell is not called when the example arguments are joined together.
I guess perl has it's own idea of what shell metacharacters are?





More information about the ILUG mailing list