[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shell-command parameters
From: |
Chetan |
Subject: |
Re: shell-command parameters |
Date: |
Mon, 05 Jan 2009 13:40:27 -0800 |
User-agent: |
Emacs Gnus |
Eli Zaretskii <eliz@gnu.org> writes:
>> 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
Or
echo 1 2 3 && echo 4 5 and get the same result everywhere
- shell-command parameters, rustom, 2009/01/05
- Re: shell-command parameters, Chetan, 2009/01/05
- Re: shell-command parameters, Peter Dyballa, 2009/01/05
- Re: shell-command parameters, Eli Zaretskii, 2009/01/05
- Message not available
- Re: shell-command parameters,
Chetan <=
- Re: shell-command parameters, Eli Zaretskii, 2009/01/05
- Message not available
- Re: shell-command parameters, rustom, 2009/01/06
- Re: shell-command parameters, Kevin Rodgers, 2009/01/06
- Message not available
- Re: shell-command parameters, rustom, 2009/01/06
- Re: shell-command parameters, Andreas Politz, 2009/01/06
- Re: shell-command parameters, Eli Zaretskii, 2009/01/06
- Re: shell-command parameters, Barry Margolin, 2009/01/08