![]() |
|
"be consistent" | |
PerlMonks |
Re: how does qx select a "/bin/sh equivalent"?by almut (Canon) |
on Jun 10, 2008 at 15:37 UTC ( #691259=note: print w/replies, xml ) | Need Help?? |
Looking at $SHELL isn't necessarily a reliable way to determine what shell variant is being used. As strace shows, Perl is doing an execve("/bin/sh", ["sh", "-c", "echo $SHELL"] ... (at least on Linux), and that's essentially all it can do... Other than that, it's the shell's job to behave like a classic bourne shell when being called as /bin/sh (which bash actually claims to do...).
In Section
Seekers of Perl Wisdom
|
|