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

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

Re: shell-command parameters


From: rustom
Subject: Re: shell-command parameters
Date: Mon, 5 Jan 2009 23:33:16 -0800 (PST)
User-agent: G2/1.0

On Jan 6, 9:05 am, Eli Zaretskii <e...@gnu.org> wrote:
> > From: Chetan <Chetan.xs...@xspam.sbcglobal.net>
> > 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?


reply via email to

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