diff options
author | Eric Blake <eblake@redhat.com> | 2016-03-04 09:47:33 -0700 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2016-03-04 11:55:22 -0700 |
commit | 6475c514550bc1fbdb3410485312211726765798 (patch) | |
tree | b67548272bed9a41238eef29e415a7e5da06ef8c /src/test.c | |
parent | a7f5d3d6d671bb4e9117b1f72971a19eed135fed (diff) | |
download | coreutils-6475c514550bc1fbdb3410485312211726765798.tar.gz |
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
Diffstat (limited to 'src/test.c')
-rw-r--r-- | src/test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test.c b/src/test.c index 36817d24e..8ac7467f1 100644 --- a/src/test.c +++ b/src/test.c @@ -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); |