diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-11-16 20:47:28 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-11-16 20:47:28 +0000 |
commit | 6d988bb20d6382fc62d9ba71317057d9605e505b (patch) | |
tree | 78844b21d830a7aea6f8472f636d20ba3776f8ac /src/expr.c | |
parent | ed2fcc6f9aa466b2e026af88fd3bd712e007da25 (diff) | |
download | coreutils-6d988bb20d6382fc62d9ba71317057d9605e505b.tar.xz |
(usage): Improve documentation along the lines suggested
by Debian 5.2.1-2.
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/expr.c b/src/expr.c index eac5cf17f..2ba533bc8 100644 --- a/src/expr.c +++ b/src/expr.c @@ -154,6 +154,11 @@ Comparisons are arithmetic if both ARGs are numbers, else lexicographical.\n\ Pattern matches return the string matched between \\( and \\) or null; if\n\ \\( and \\) are not used, they return the number of characters matched or 0.\n\ "), stdout); + fputs (_("\ +\n\ +Exit status is 0 if EXPRESSION is neither null nor 0, 1 if EXPRESSION is null\n\ +or 0, 2 if EXPRESSION is syntactically invalid, and 3 if an error occurred.\n\ +"), stdout); printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); } exit (status); |