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: Klaus Berndl
Subject: Re: command.com versus cmd.exe
Date: 12 Sep 2002 14:45:55 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

On Thu, 12 Sep 2002, Kai Großjohann wrote:

>  Klaus Berndl <address@hidden> writes:
>  
> > But it should not matter because i would recommend to check the
> > environment-variable COMSPEC (which is set always be every windows
> > system!), maybe like follows:
>  
>  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")
>  Are there other values of system-type that I should check for?

The info manual says for *system-type*:

,----
| ...
|     `ms-dos'
|           Microsoft MS-DOS "operating system."  Emacs compiled with
|           DJGPP for MS-DOS binds `system-type' to `ms-dos' even when
|           you run it on MS-Windows.
| ...
`----

but i think today MS-DOS is not relevant anymore.

But i'm not sure about *cygwin32* as system-type. For the cygwin port of
recent XEmacs system-type is set to this value, don't know what value is set
for the cygwin port of GNU Emacs 21.2 (which seems to available now).

COMSPEC is also set for the cygwin-suite (because it "ingerits" the env-vars
of Windows) and it has normally the value "cmd.exe".

Because i do not know for which purpose you need the command-interpreter of
windows i can not say what is better for cygwin-ports of (X)Emacs: the value
of COMSPEC or "/bin/sh" (which is of course available on cygwin-systems)?!

Summary: Dependent of the usage you maybe want to check also for *cygwin32*!

Ciao,
Klaus
-- 
Klaus Berndl                    mailto: address@hidden
sd&m AG                         http://www.sdm.de
software design & management
Thomas-Dehler-Str. 27, 81737 München, Germany
Tel +49 89 63812-392, Fax -220

reply via email to

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