all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Klaus Berndl <Klaus.Berndl@raibau.raiffeisen.at>
Subject: Re: command.com versus cmd.exe
Date: 12 Sep 2002 14:45:55 +0200	[thread overview]
Message-ID: <ud6rj74vw.fsf@raibau.raiffeisen.at> (raw)
In-Reply-To: vafsn0fbf50.fsf@lucy.cs.uni-dortmund.de

[-- Attachment #1: Type: text/plain, Size: 1523 bytes --]

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

>  Klaus Berndl <Klaus.Berndl@raibau.raiffeisen.at> 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

[-- Attachment #2: Type: text/plain, Size: 183 bytes --]


-- 
Klaus Berndl			mailto: klaus.berndl@sdm.de
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	other threads:[~2002-09-12 12:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-12 10:27 command.com versus cmd.exe Kai Großjohann
2002-09-12 11:03 ` Klaus Berndl
2002-09-12 11:50   ` Kai Großjohann
2002-09-12 12:45     ` Klaus Berndl [this message]
2002-09-12 17:23       ` Jochen Küpper
2002-09-12 12:59     ` lawrence mitchell
2002-09-12 13:55       ` Kai Großjohann
2002-09-12 22:15       ` FRC
2002-09-12 12:50 ` Zhongtao Zhu
     [not found] ` <mailman.1031834951.18415.help-gnu-emacs@gnu.org>
2002-09-12 13:53   ` Kai Großjohann
2002-09-13  8:49     ` Klaus Berndl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ud6rj74vw.fsf@raibau.raiffeisen.at \
    --to=klaus.berndl@raibau.raiffeisen.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.