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 <caa7hnqcvugoacv7tfsak38jbmc6absmswkn5zvysa4a2en6...@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)