Date: Tue, 20 May 1997 16:57:20 +0300 (IDT) From: Eli Zaretskii To: Robert Hoehne cc: "John M. Aldrich" , DJGPP Workers Mailing List Subject: Re: Bugfix for redir.c In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.