]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(expr invocation): expr exit status is 3 only for
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 12 Apr 2006 07:47:11 +0000 (07:47 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 12 Apr 2006 07:47:11 +0000 (07:47 +0000)
internal errors now; 2 is also for invalid values in expressions.

doc/ChangeLog
doc/coreutils.texi

index 98a925f4c6c92869ea4f1bab6dc3db9a3a4ef9c0..51de34ac4debfac75d9fca0f75f2120572578336 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * coreutils.texi (expr invocation): expr exit status is 3 only for
+       internal errors now; 2 is also for invalid values in expressions.
+
 2006-04-09  Ori Avtalion  <oavtal@bezeqint.net>
 
        * coreutils.texi (Top): Add 'hostid' to System context menu line.
index 177f12e41a09775037bd14bce230fd87e73af771..a91b9e7d58d4b848dfafa45677f5a18aac00d781 100644 (file)
@@ -10277,8 +10277,8 @@ Exit status:
 @display
 0 if the expression is neither null nor 0,
 1 if the expression is null or 0,
-2 if the expression is syntactically invalid,
-3 if an error occurred.
+2 if the expression is invalid,
+3 if an internal error occurred (e.g., arithmetic overflow).
 @end display
 
 @menu