From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: shell-command parameters Date: Mon, 05 Jan 2009 22:15:56 +0200 Message-ID: References: <67385669-7b4e-4bac-bc95-1f64689b6379@40g2000prx.googlegroups.com> <81eizhzxhq.fsf@myhost.sbcglobal.net> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1231186599 2996 80.91.229.12 (5 Jan 2009 20:16:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Jan 2009 20:16:39 +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 21:17:49 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 1LJvtQ-0003Gy-1B for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Jan 2009 21:17:44 +0100 Original-Received: from localhost ([127.0.0.1]:43600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJvsA-0007Ee-EB for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Jan 2009 15:16:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJvrr-0007CB-AH for help-gnu-emacs@gnu.org; Mon, 05 Jan 2009 15:16:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJvrp-000795-Cd for help-gnu-emacs@gnu.org; Mon, 05 Jan 2009 15:16:05 -0500 Original-Received: from [199.232.76.173] (port=48079 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJvrp-000792-9O for help-gnu-emacs@gnu.org; Mon, 05 Jan 2009 15:16:05 -0500 Original-Received: from mtaout7.012.net.il ([84.95.2.19]:40688) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LJvro-0006EB-UH for help-gnu-emacs@gnu.org; Mon, 05 Jan 2009 15:16:05 -0500 Original-Received: from conversion-daemon.i-mtaout7.012.net.il by i-mtaout7.012.net.il (HyperSendmail v2007.08) id <0KD000A00LL3ZW00@i-mtaout7.012.net.il> for help-gnu-emacs@gnu.org; Mon, 05 Jan 2009 22:15:50 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.70.20.81]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KD0004GWLMEW9F0@i-mtaout7.012.net.il> for help-gnu-emacs@gnu.org; Mon, 05 Jan 2009 22:15:50 +0200 (IST) In-reply-to: <81eizhzxhq.fsf@myhost.sbcglobal.net> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) 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:61096 Archived-At: > 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