[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to grep/doc/grep.texi
From: |
Charles Levert |
Subject: |
Changes to grep/doc/grep.texi |
Date: |
Wed, 09 Nov 2005 15:04:44 -0500 |
Index: grep/doc/grep.texi
diff -u grep/doc/grep.texi:1.58 grep/doc/grep.texi:1.59
--- grep/doc/grep.texi:1.58 Tue Nov 8 21:35:33 2005
+++ grep/doc/grep.texi Wed Nov 9 20:04:41 2005
@@ -707,6 +707,12 @@
But the exit status is 2 if an error occurred, unless the @option{-q} or
@option{--quiet} or @option{--silent} option is used and a selected line
is found.
+Note, however, that @sc{posix} only mandates,
+for programs such as @command{grep}, @command{cmp}, and @command{diff},
+that the exit status in case of error be greater than 1;
+it is therefore advisable, for the sake of portability,
+to use logic that tests for this general condition
+instead of strict equality with 2.
@node grep Programs
@chapter @command{grep} programs