[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ ! ! hey ] -> [: too many arguments
From: |
Steffen Nurpmeso |
Subject: |
Re: [ ! ! hey ] -> [: too many arguments |
Date: |
Mon, 27 Jun 2022 17:20:11 +0200 |
User-agent: |
s-nail v14.9.24-259-ge9cf982228 |
One more, and orry for the late reply, i waited until i could test
also SunOS 5.9 test(1) (binary from 2002-04-07!).
Emanuele Torre wrote in
<CAA7hNqcVUgOAcv7tfsAK38jBmc6ABsmswkn5ZVYSa4A2en6p9w@mail.gmail.com>:
|On 22/06/23 11:08 PM, Steffen Nurpmeso wrote:
...
| bash-5.1$ test ! ! hey ; printf %s\\n "$?"
...
|test(1) needs to treat the 0 to 4 arguments expressions specially
|according to POSIX so the bug is probably only in the code that
|implements those special cases.
Anyhow it seems bash(1) [/test diverges from _all_ test(1)'s
in my reach (SunOS, OpenBSD, NetBSD, FreeBSD, busybox, GNU
coreutils). It can do what it wants, of course.
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)