Mail Archives: djgpp/1994/08/29/17:21:13
> Just in case anyone actually sets out to do this: please handle the
> SHELL variable: If SHELL is set, use it instead of COMSPEC and the
> switch should be '-c' instead of '/c'. This will allow folks to use
> shells other than COMMAND.COM. Of course if you're exec'ing a '.bat'
> file then you may want to use COMMAND ;-)
But what if you have set SHELL=command.com? It won't like the -c. I haven't
looked at the source code for TC 2.0 system(), but in 3.1, it uses COMSPEC
and calls a routine to get the switch character, so you already can use other
shells. I think that your request would be better met at the application
level than at the extender level.
- Raw text -