From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Shell invoked via shell-file-name Date: Sat, 09 Apr 2011 19:21:45 +0300 Message-ID: <8339lrtmxy.fsf@gnu.org> References: <86lizkqez2.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1302366244 13944 80.91.229.12 (9 Apr 2011 16:24:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 9 Apr 2011 16:24:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: Christoph Scholtes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 09 18:23:58 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q8ax3-0004sq-J7 for ged-emacs-devel@m.gmane.org; Sat, 09 Apr 2011 18:23:57 +0200 Original-Received: from localhost ([127.0.0.1]:45118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8ax3-0002zq-2q for ged-emacs-devel@m.gmane.org; Sat, 09 Apr 2011 12:23:57 -0400 Original-Received: from [140.186.70.92] (port=57757 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8awx-0002zb-1K for emacs-devel@gnu.org; Sat, 09 Apr 2011 12:23:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8awv-0007PP-SV for emacs-devel@gnu.org; Sat, 09 Apr 2011 12:23:50 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:36928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8awv-0007P0-BZ for emacs-devel@gnu.org; Sat, 09 Apr 2011 12:23:49 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LJE003007Z8HC00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sat, 09 Apr 2011 19:23:46 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.239.68]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LJE003C487KB950@a-mtaout20.012.net.il>; Sat, 09 Apr 2011 19:23:46 +0300 (IDT) In-reply-to: <86lizkqez2.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138331 Archived-At: > From: Christoph Scholtes > Date: Fri, 08 Apr 2011 21:29:53 -0600 > > Is there a way to invoke a shell via `shell-file-name' with additional > command line parameters? I don't know. Did you try setting shell-command-switch to "-lc"? > I am trying to use cygwin for certain things on a Windows system, for > example mercurial, ruby or ack. Why are trying this with Cygwin? There are native Windows ports of Mercurial and Perl. AFAIK, the Windows port of Mercurial comes with hg.exe, produced by Py2exe. > I can call, for example, ack correctly from Windows cmd.exe like this: > > C:\>cywgin\bin\bash -l -c ack > > whereas > > C:\>cygwin\bin\bash -c ack > > does not work > > cygwin/bin/bash: ack: command not found Perhaps we could teach cmdproxy about the shebang syntax of Unix scripts. The Windows port of Make already knows about that.