No, Perl does not use an %ENV variable to figure out which shell to use for system. For Unix it is always /bin/sh (unless you changed that for some obscure reason when you built Perl).
If you always use the multi-argument form of system, then a shell will never be invoked. Accomplishing this can be made easier by using IPC::Open2 and/or IPC::Open3 to do I/O redirection w/o using a shell.
- tye (but my friends call me "Tye")In reply to (tye)Re: Security concern with sudo and system()
by tye
in thread Security concern with sudo and system()
by evlg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |