[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/34646 CVS commit: src/bin/test
The following reply was made to PR standards/34646; it has been noted by GNATS.
From: "Robert Elz" <kre%netbsd.org@localhost>
Subject: PR/34646 CVS commit: src/bin/test
Date: Wed, 12 Sep 2018 23:33:31 +0000
Module Name: src
Committed By: kre
Date: Wed Sep 12 23:33:31 UTC 2018
Make test(1) always use the POSIX "number of args" evaluation rules
when they apply.
Only fall back to the old expression evaluation when there are more
than 4 args, or when the args given cannot work as a test expression
using the POSIX rules. That is when the result is unspecified.
Also fix old bug where a string of whitespace is considered to be a
valid number (at least one digit is needed amongst it somewhere...)
XXX pullup -8
To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/bin/test/test.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Main Index |
Thread Index |