From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rustom Newsgroups: gmane.emacs.help Subject: Re: shell-command parameters Date: Tue, 6 Jan 2009 07:02:14 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <67385669-7b4e-4bac-bc95-1f64689b6379@40g2000prx.googlegroups.com> <81eizhzxhq.fsf@myhost.sbcglobal.net> <818wppsa7o.fsf@myhost.sbcglobal.net> <72a44850-9df5-44f2-99d4-5aa90b48c15d@w1g2000prm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1231256549 8392 80.91.229.12 (6 Jan 2009 15:42:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Jan 2009 15:42:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 06 16:43:40 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LKE5c-0007Yg-2X for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jan 2009 16:43:32 +0100 Original-Received: from localhost ([127.0.0.1]:49075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LKE4M-0008HR-FO for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jan 2009 10:42:14 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!d42g2000prb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 220.225.70.2 Original-X-Trace: posting.google.com 1231254134 11566 127.0.0.1 (6 Jan 2009 15:02:14 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 6 Jan 2009 15:02:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d42g2000prb.googlegroups.com; posting-host=220.225.70.2; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-Via: 1.1 PT-PROXY1, 1.1 PT-PROXY2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:165778 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61115 Archived-At: On Jan 6, 7:29=A0pm, Kevin Rodgers wrote: > rustom wrote: > > But I still wonder what shell is running in windows emacs? > > ,----[ C-h v shell-file-name RET ] > | shell-file-name is a variable defined in `src/callproc.c'. > | Its value is "/bin/bash" Thanks. Thats the variable I was looking for. It turns out to be /path/to/emacs/bin/cmdproxy.exe Changing it to c:/cygwin/bin/bash.exe makes it work as expected (by a unix user) I wonder does emacs go out of its way to make life difficult for a windows user? MS does a good job of this without help from emacs :-) I mean 'cmd' has one expected behavior; shell has another. Why make the 'shell' variable point to a cmd imitation? (Sorry to grumble) Is it possible to remember the calls to these shell calls (made with M-!) across emacs invocations -- the way bash remembers?