delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/07/07/11:57:04

Date: Mon, 7 Jul 1997 18:56:16 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Molnar Laszlo <molnarl AT cdata DOT tvnet DOT hu>
cc: DJGPP Workers <djgpp-workers AT delorie DOT com>
Subject: Re: bug in system()
In-Reply-To: <33C0F8C3.2F2F4CB4@cdata.tvnet.hu>
Message-ID: <Pine.SUN.3.91.970707185426.11286C-100000@is>
MIME-Version: 1.0

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019