<quote who="Paul D. Smith">
> %% Barry Kelly <[EMAIL PROTECTED]> writes:
>
>   >> The basename value of the COMSPEC variable should be enough; if ==
>   >> cmd.exe then NT else DOS.  You might wish a command line switch for
>   >> those who've replaced their windows shell with something else and
>   >> have changed the COMSPEC value; E.G. -O [DOS|NT].
>
>   bk> The environment variable:
>
>   bk>   OS=Windows_NT
>
>   bk> is what you're looking for.
>

The requirement is to know which shell cmd.exe or command.com.  I can set
COMSPEC=command.com on OS=Windows_NT.

> I'm not sure relying on an environment variable for something as basic
> as this is the best way to go, but ultimately it's up to you folks if
> you think it's the right way.
>

COMSPEC is the equivalent to SHELL.  It is available on DOS and Windows. 
I don't know if OS is.

Earnie

--
http://www.mingw.org
http://sourceforge.net/projects/mingw
https://sourceforge.net/donate/index.php?user_id=15438


_______________________________________________
Make-w32 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/make-w32

Reply via email to