Mail Archives: djgpp-workers/1997/07/07/23:15:38
Eli Zaretskii wrote:
>
> On Mon, 7 Jul 1997, Molnar Laszlo wrote:
>
> > if (!shell)
> > shell = command_com;
> >
> > like in _shell_command(), because _is_unixy_shell() can receive
> > a NULL pointer which list_member() will dereference, if there is no
> > SHELL or COMSPEC environment variable (this is the case in a perl
> > test script).
>
> Please explain how did you get into a situation where there's no COMSPEC.
> AFAIK, it should be always defined on MS-DOS. If I'm right, comspec is
> never a NULL pointer.
I was surprised too. So this perl script tries to test the environment
handling, and in one of its subtest it deletes the whole environment and
tries to call a djgpp program (echo.exe I think). But at that moment,
there is no COMPSPEC :(
- Raw text -