/[grep]/grep/doc/grep.texi
ViewVC logotype

Diff of /grep/doc/grep.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.58 by charles_levert, Tue Nov 8 21:35:33 2005 UTC revision 1.59 by charles_levert, Wed Nov 9 20:04:41 2005 UTC
# Line 707  Normally, exit status is 0 if selected l Line 707  Normally, exit status is 0 if selected l
707  But the exit status is 2 if an error occurred, unless the @option{-q} or  But the exit status is 2 if an error occurred, unless the @option{-q} or
708  @option{--quiet} or @option{--silent} option is used and a selected line  @option{--quiet} or @option{--silent} option is used and a selected line
709  is found.  is found.
710    Note, however, that @sc{posix} only mandates,
711    for programs such as @command{grep}, @command{cmp}, and @command{diff},
712    that the exit status in case of error be greater than 1;
713    it is therefore advisable, for the sake of portability,
714    to use logic that tests for this general condition
715    instead of strict equality with 2.
716    
717  @node grep Programs  @node grep Programs
718  @chapter @command{grep} programs  @chapter @command{grep} programs

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26