[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
`&>' doesn't behave as expected in POSIX mode
From: |
Oğuz |
Subject: |
`&>' doesn't behave as expected in POSIX mode |
Date: |
Sun, 20 Jun 2021 11:05:28 +0300 |
$ 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
- `&>' doesn't behave as expected in POSIX mode,
Oğuz <=