From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: shell-command parameters Date: Tue, 06 Jan 2009 07:29:37 -0700 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; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231252212 24357 80.91.229.12 (6 Jan 2009 14:30:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Jan 2009 14:30:12 +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 15:31:22 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 1LKCxW-0006ck-0p for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jan 2009 15:31:06 +0100 Original-Received: from localhost ([127.0.0.1]:33282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LKCwG-0004W2-9J for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jan 2009 09:29:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LKCvw-0004Vf-KY for help-gnu-emacs@gnu.org; Tue, 06 Jan 2009 09:29:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LKCvv-0004VT-CG for help-gnu-emacs@gnu.org; Tue, 06 Jan 2009 09:29:27 -0500 Original-Received: from [199.232.76.173] (port=36698 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LKCvv-0004VQ-5z for help-gnu-emacs@gnu.org; Tue, 06 Jan 2009 09:29:27 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:41882 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LKCvu-0008Ls-HW for help-gnu-emacs@gnu.org; Tue, 06 Jan 2009 09:29:26 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LKCvp-0001AS-Dz for help-gnu-emacs@gnu.org; Tue, 06 Jan 2009 14:29:21 +0000 Original-Received: from c-67-161-145-183.hsd1.co.comcast.net ([67.161.145.183]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Jan 2009 14:29:21 +0000 Original-Received: from kevin.d.rodgers by c-67-161-145-183.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Jan 2009 14:29:21 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-67-161-145-183.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) In-Reply-To: <72a44850-9df5-44f2-99d4-5aa90b48c15d@w1g2000prm.googlegroups.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:61108 Archived-At: rustom wrote: > On Jan 6, 9:05 am, Eli Zaretskii wrote: >>> From: Chetan >>> Date: Mon, 05 Jan 2009 13:40:27 -0800 >>>> On Windows, if you want 2 commands on a single line, use `&' instead >>>> of `;', as in >>>> echo 1 2 3 & echo 4 5 >>> Or >>> echo 1 2 3 && echo 4 5 and get the same result everywhere >> The semantics of ;/& and && is not the same. With `echo', the >> difference hardly matters, but in general, the former will always run >> both commands, while the latter will sometimes only run the first one. > > Thanks. > > I guess mostly one needs cmd1 && cmd2. And the unix equivalent of > cmd1 ; cmd2 is cmd1 & cmd2. > > 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" | | | Documentation: | *File name to load inferior shells from. | Initialized from the SHELL environment variable, or to a system-dependent | default if SHELL is not set. | | You can customize this variable. | | [back] `---- Looking at callproc.c, the system-dependent default is "/bin/sh". -- Kevin Rodgers Denver, Colorado, USA