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: Mon, 5 Jan 2009 23:33:16 -0800 (PST) Organization: http://groups.google.com Message-ID: <72a44850-9df5-44f2-99d4-5aa90b48c15d@w1g2000prm.googlegroups.com> References: <67385669-7b4e-4bac-bc95-1f64689b6379@40g2000prx.googlegroups.com> <81eizhzxhq.fsf@myhost.sbcglobal.net> <818wppsa7o.fsf@myhost.sbcglobal.net> 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 1231227647 12283 80.91.229.12 (6 Jan 2009 07:40:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Jan 2009 07:40:47 +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 08:41:58 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 1LK6Za-00081X-7y for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jan 2009 08:41:58 +0100 Original-Received: from localhost ([127.0.0.1]:42285 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LK6YK-0002c7-Js for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jan 2009 02:40:40 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!w1g2000prm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 220.225.70.2 Original-X-Trace: posting.google.com 1231227196 26375 127.0.0.1 (6 Jan 2009 07:33:16 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 6 Jan 2009 07:33:16 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w1g2000prm.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:165770 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:61103 Archived-At: On Jan 6, 9:05=A0am, 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 > > > > =A0 =A0echo 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. =A0With `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?