|
|
| No such thing as a small change | |
| PerlMonks |
Re^2: Specifying a shell for use with Backticksby bluto (Curate) |
| on Apr 12, 2006 at 15:29 UTC ( #542859=note: print w/ replies, xml ) | Need Help?? |
|
If you really can't get backticks to use a reasonable shell, perhaps you can trick it. For example in ksh, you can do something like this...
... which sets PATH just for the command. Just be careful you know what is in $ENV{PATH} (e.g. no spaces; not user supplied). I don't know if this syntax will work for csh also, so perhaps something ugly like...
An alternative, if you are only worred about the PATH, might be to supply a fullpath to backticks (i.e. dont give the shell a chance to locate it - just tell it)...
IMO these seem like band-aids for the real problem. Using csh is just unsafe, outside of an interactive shell.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||