From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chetan Newsgroups: gmane.emacs.help Subject: Re: shell-command parameters Date: Mon, 05 Jan 2009 13:40:27 -0800 Organization: Noname Inc. Message-ID: <818wppsa7o.fsf@myhost.sbcglobal.net> References: <67385669-7b4e-4bac-bc95-1f64689b6379@40g2000prx.googlegroups.com> <81eizhzxhq.fsf@myhost.sbcglobal.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1231195244 1580 80.91.229.12 (5 Jan 2009 22:40:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Jan 2009 22:40:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 05 23:41:55 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 1LJy8w-0008Uj-IV for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Jan 2009 23:41:54 +0100 Original-Received: from localhost ([127.0.0.1]:56737 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJy7h-0004Ex-5A for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Jan 2009 17:40:37 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newshub.sdsu.edu!flph200.ffdc.sbc.com!prodigy.net!flph199.ffdc.sbc.com!prodigy.com!flpi107.ffdc.sbc.com!nlpi067.nbdc.sbc.com.POSTED!8e1d8614!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Emacs Gnus Cancel-Lock: sha1:/PCn50Mn62+zKWsqCu4oUlq9NwE= Original-Lines: 35 Original-NNTP-Posting-Host: 76.202.61.169 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: nlpi067.nbdc.sbc.com 1231191627 ST000 76.202.61.169 (Mon, 05 Jan 2009 16:40:27 EST) Original-NNTP-Posting-Date: Mon, 05 Jan 2009 16:40:27 EST X-UserInfo1: FKPO@MONEJVOBTLZOZKN^_TDFZ\@@FXLM@TDOCQDJ@_@FNXACNVOPCWZBL[\YUWHANGYZEFNHFZPNLOBUNSS^_LGEVWEY\PHO@YJSSWBBDT\PFD^ESBTXVCCMTD]JCJLE\_IJMFNRY]SWE[S[D_CNB__ZK^VGVCKHA[S@COB^[@ZQSDFQ\BPMS@DZVUKQTJL Original-Xref: news.stanford.edu gnu.emacs.help:165764 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:61099 Archived-At: Eli Zaretskii writes: >> From: Chetan >> Date: Mon, 05 Jan 2009 05:35:45 -0800 >> >> rustom writes: >> >> > When I issue a shell command which is a pipeline such as say >> > >> > echo 1 2 3; echo 4 5 >> > >> > in a normal shell I should get >> > 1 2 3 >> > 4 5 >> > >> > However in windows for emacs shell-command (M-!) I get >> > 1 2 3;echo 4 5 >> > >> > Any clues?? >> > >> > The worst part is it sometimes works and sometimes not! >> >> Do you mean you get different results on Windows or between Windows >> and other systems? >> >> If it is the latter, isn't that the expected behaviour? > > Yes, it certainly is. > > 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