bug-bash
[Top][All Lists]
Advanced

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

Re: `&>' doesn't behave as expected in POSIX mode


From: Oğuz
Subject: Re: `&>' doesn't behave as expected in POSIX mode
Date: Sun, 20 Jun 2021 16:43:41 +0300

20 Haziran 2021 Pazar tarihinde Chris Elvidge <celvidge001@gmail.com> yazdı:

> On 20/06/2021 09:05 am, Oğuz wrote:
>
>>      $ set -o posix
>>      $ uname &>/dev/null
>>      $
>>
>> `uname &' and `>/dev/null' should be parsed as two separate commands;
>> that, if I'm not missing anything, is what POSIX says. But bash
>> doesn't do that in POSIX mode, and redirects both stderr and stdout to
>> `/dev/null'.
>>
>>
>> Oğuz
>>
>>
>>
> If you want to parse them as two separate commands, separate them.


Yeah, that's not the point.


>
> --
> Chris Elvidge
> England
>
>
>

-- 
Oğuz


reply via email to

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