in reply to (tye)Re: Security concern with sudo and system()
in thread Security concern with sudo and system()
If that environment variable does not exist, it uses either "CMD.EXE /X/C" or "COMMAND.COM /C" depending one whether it's running NT or Win9x.
Having different shells on Win9x vs NT can expose differences, since CMD with the /X switch does more than COMMAND.COM.
I know Perl used to use $ENV{COMSPEC} because I relied on the capabilites of my shell (the one that invoked the perl script in the first place) and found it broke at some point. That's when I learned about PERL5SHELL. I seem to recall that there was also some "common" min-shell shipped with activestate Perl at some point, to prevent differences between 9x and NT.
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: $ENV{PERL5SHELL}
by tye (Sage) on Sep 16, 2001 at 08:56 UTC | |
by John M. Dlugosz (Monsignor) on Sep 16, 2001 at 09:02 UTC |