help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell-command parameters


From: Eli Zaretskii
Subject: Re: shell-command parameters
Date: Mon, 05 Jan 2009 22:15:56 +0200

> From: Chetan <Chetan.xspam@xspam.sbcglobal.net>
> Date: Mon, 05 Jan 2009 05:35:45 -0800
> 
> rustom <rustompmody@gmail.com> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]