Mail Archives: djgpp-workers/1997/05/20/09:59:50
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 -