From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: command.com versus cmd.exe Date: Thu, 12 Sep 2002 15:55:10 +0200 Organization: University of Dortmund, Germany Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031840173 23634 127.0.0.1 (12 Sep 2002 14:16:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 12 Sep 2002 14:16:13 +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 17pUlP-00068x-00 for ; Thu, 12 Sep 2002 16:16:12 +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 17pUlZ-0004yo-00; Thu, 12 Sep 2002 10:16:21 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.wirehub.nl!newsfeed.freenet.de!eusc.inter.net!Informatik.Uni-Dortmund.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: lucy.cs.uni-dortmund.de Mail-Copies-To: never User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:AjFLFQAlEuf3bqm59XhfeLPo+64= Original-Xref: nntp.stanford.edu gnu.emacs.help:104828 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:1383 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1383 lawrence mitchell writes: > 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. That looks like a good idea. kai -- ~/.signature is: umop 3p!sdn (Frank Nobis)