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

2021-06-21 Thread Oğuz
21 Haziran 2021 Pazartesi tarihinde Chet Ramey yazdı: > > You're right, and it's not worth changing at this point. It's come up > before, and the bash interpretation is much more useful and compatible. Okay then > > > -- > ``The lyf so short, the craft so long to lerne.'' - Chaucer >

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

2021-06-21 Thread Chet Ramey
On 6/20/21 4: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/n

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

2021-06-20 Thread felix
On Sun, Jun 20, 2021 at 10:18:59AM -0400, Eli Schwartz wrote: > > *Neither* behavior is similar to e.g. dash's behavior, or for that > matter ksh. Both print the uname output after registering it as a > backgrounded job (redirection does not get applied to the command itself). Quick comparission

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

2021-06-20 Thread Dale R. Worley
Oğuz writes: > $ 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'. A

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

2021-06-20 Thread Eli Schwartz
On 6/20/21 6:30 AM, Chris Elvidge wrote: > 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 th

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

2021-06-20 Thread Oğuz
20 Haziran 2021 Pazar tarihinde Chris Elvidge 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

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

2021-06-20 Thread Chris Elvidge
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 `/d

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

2021-06-20 Thread Oğuz
$ 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