in reply to Re: Re: Inconsistent system call from backticks vs system()
in thread Inconsistent system call from backticks vs system()
If the 2>&1 trick works, then he is going through the shell.
Actually, if the only "shell meta characters" in your command are a trailing "2>&1", then Perl will still avoid using the shell and simply redirect STDERR to STDOUT after it forks but before it execs.
I think this feature was added to Perl fairly recently and I have yet to notice it having been documented.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^3: Inconsistent system call from backticks vs system() (little-known)
by bm (Hermit) on Jul 01, 2003 at 15:44 UTC | |
by tye (Sage) on Jul 01, 2003 at 16:00 UTC |