help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: command.com versus cmd.exe


From: lawrence mitchell
Subject: Re: command.com versus cmd.exe
Date: Thu, 12 Sep 2002 13:59:41 +0100
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2.90 (i386-mingw-windows98.2222)

Kai Grossjohann wrote:

[...]

> Ah, I didn't know about COMSPEC.  I now use the following code to
> initialize the variable:

>   (if (memq system-type '(windows-nt))
>       (getenv "COMSPEC")
>     "/bin/sh")

How about (or (getenv "COMSPEC") "/bin/sh") ?  Though I suppose
somebody might have defined an environment variable named COMSPEC
themselves.

> Are there other values of system-type that I should check for?

DOS and maybe (probably?) Cygwin I'd guess.  What about OS/2?[1]

[1] Someone help me!
-- 
lawrence mitchell <wence@gmx.li>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]