delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/05/20/09:59:50

Date: Tue, 20 May 1997 16:57:20 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Robert Hoehne <robert DOT hoehne AT mathematik DOT tu-chemnitz DOT de>
cc: "John M. Aldrich" <fighteer AT cs DOT com>,
DJGPP Workers Mailing List <djgpp-workers AT delorie DOT com>
Subject: Re: Bugfix for redir.c
In-Reply-To: <Pine.HPP.3.95q.970520113905.14749C-100000@newton.mathematik.tu-chemnitz.de>
Message-ID: <Pine.SUN.3.91.970520164856.22684B-100000@is>
MIME-Version: 1.0

On Tue, 20 May 1997, Robert Hoehne wrote:

> But thought about the problem and I think, I found a much smaller
> patch, which does exactly the same. It uses the '__dosexec_in_system'
> variable (I found this when I looked at the system function).

I don't think this is a good idea.  It might work (I didn't check yet),
but if so, it's by pure coincidence.  A non-zero value of
`__dosexec_in_system' means that somebody called `system'.  This variable
is checked in quite a few places, and some crucial decisions, not only
related to wildcard expansion, are made based on that.  Lying to dosexec
about this is not recommended, because the code there is tricky and took a
lot of iterations to get right. 

- Raw text -


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