bug#69939: test utility bug: "test -a -a -a" and "test -o -o -o" fail
Paul Eggert <[email protected]>
| Newsgroups | gmane.comp.gnu.core-utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
On 8/14/25 21:18, Collin Funk wrote:
> Just adding here that POSIX.1-2024 removed the -a and -o operators [1]:
>
> Austin Group Defect 1330 is applied, removing the obsolescent (and
> optional) -a and -o binary primaries, and '(' and ')' operators.
>
> So I don't think we should spend much time worrying about it.
Yes, as of POSIX.1-2024 the behavior of "test -a -a -a" is unspecified
so coreutils "test" can now do whatever it likes. If someone really
wanted to make it conform to older POSIX too I think we should accept a
patch but it's low priority.