Syntactic Confectionery Delight | |
PerlMonks |
Re: Specifying a shell for use with Backticksby bigmacbear (Monk) |
on Apr 12, 2006 at 17:20 UTC ( [id://542899]=note: print w/replies, xml ) | Need Help?? |
I had a similar problem with a Makefile a long time ago. Make used whatever shell was in the user's environment rather than defaulting to a /bin/sh-like shell, and everybody used /bin/csh at the site. So I had to explicitly set $SHELL to /bin/sh in the Makefile. Extrapolating to Perl, have you tried explicitly setting $ENV{'SHELL'}=/bin/sh before running your backticks?
In Section
Seekers of Perl Wisdom
|
|