delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/21/11:16:41

Date: Tue, 21 Sep 1999 14:52:34 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Horst Kraemer <horst DOT kraemer AT snafu DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: How to redirect?
In-Reply-To: <37e0bebc.38635490@news.snafu.de>
Message-ID: <Pine.SUN.3.91.990921145015.19568A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 16 Sep 1999, Horst Kraemer wrote:

>    exec(getenv('COMSPEC'), '/c c:\g32\bin\ls.exe -l y > log');

This implicitly assumes that COMSPEC points to COMMAND.COM or its close 
work-alike.  While mostly true, this assumption might be false in some 
rare cases (e.g., there are DJGPP users who put SHELL=-bash.exe in their 
CONFIG.SYS).  If the shell doesn't know about the /c switch, the above 
will fail.

- Raw text -


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