mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
test: Document that -a and -o are undesirable
POSIX recommends avoiding -a and -o, for good reason. src/test.c (usage): Mention that inherent ambiguities exist with binary -a and -o. Problem reported by Martin Gebert in: http://bugs.gnu.org/22909
This commit is contained in:
1 parent
a7f5d3d6d6
commit
6475c51455
1 file changed
+5
@@ -790,6 +790,11 @@ INTEGER may also be -l STRING, which evaluates to the length of STRING.\n\
|
||||
"), stdout);
|
||||
fputs (_("\
|
||||
\n\
|
||||
NOTE: Binary -a and -o are inherently ambiguous. Use 'test EXPR1 && test\n\
|
||||
EXPR2' or 'test EXPR1 || test EXPR2' instead.\n\
|
||||
"), stdout);
|
||||
fputs (_("\
|
||||
\n\
|
||||
NOTE: [ honors the --help and --version options, but test does not.\n\
|
||||
test treats each of those as it treats any other nonempty STRING.\n\
|
||||
"), stdout);
|
||||
|
||||
Reference in new issue
Block a user