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: Chris Elvidge
Subject: Re: `&>' doesn't behave as expected in POSIX mode
Date: Sun, 20 Jun 2021 11:30:16 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Lightning/5.4

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.

--
Chris Elvidge
England




reply via email to

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