From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Klaus Berndl Newsgroups: gmane.emacs.help Subject: Re: command.com versus cmd.exe Date: 12 Sep 2002 14:45:55 +0200 Organization: UTA/netway (Customer) Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1031835365 5444 127.0.0.1 (12 Sep 2002 12:56:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 12 Sep 2002 12:56:05 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17pTVr-0001Pf-00 for ; Thu, 12 Sep 2002 14:56:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17pTVz-0005fE-00; Thu, 12 Sep 2002 08:56:11 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.stueberl.de!news.netway.at!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 62 Original-NNTP-Posting-Host: 195.96.24.28 Original-X-Trace: newsreader1.netway.at 1031834948 7896 195.96.24.28 (12 Sep 2002 12:49:08 GMT) Original-X-Complaints-To: abuse@netway.at Original-NNTP-Posting-Date: 12 Sep 2002 12:49:08 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 X-Forwarded: by - (DeleGate/7.5.3) Original-Xref: nntp.stanford.edu gnu.emacs.help:104820 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1376 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1376 --=-=-= Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit On Thu, 12 Sep 2002, Kai Großjohann wrote: > Klaus Berndl 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 --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit -- 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 --=-=-=--