[Israel.pm] system() platform dependant issue

Gaal Yahas gaal at forum2.org
Tue Sep 5 05:14:10 PDT 2006


On Tue, Sep 05, 2006 at 02:22:54PM +0300, Levenglick Dov-RM07994 wrote:
> I tried modifying $ENV{SHELL}, but it didn't help. Doesn't Perl call the
> shell specified in %ENV? 

No.

Quoth perlfunc:

  system LIST
  system PROGRAM LIST
     [...] If there is only one scalar argument, the argument is checked
     for shell metacharacters, and if there are any, the entire argument
     is passed to the system’s command shell for parsing (this is
     "/bin/sh -c" on Unix platforms, but varies on other platforms).
     If there are no shell metacharacters in the argument, it is split
     into words and passed directly to "execvp", which is more efficient.

-- 
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/



More information about the Perl mailing list