bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep: return code with -v and empty input


From: Alain Magloire
Subject: Re: grep: return code with -v and empty input
Date: Mon, 26 Mar 2001 10:22:28 -0500 (EST)

> 
> On Fri, 23 Mar 2001, Alain Magloire wrote:
> 
> >>>According to the documentation, the -v flag is supposed to invert the
> >>>exit status:
> >>>
> >>>>Normally, exit status is 0 if matches were found, and 1 if no matches
> >>>>were found (the `-v' option inverts the sense of the exit status).
> 
> >grep.info and man page:
> >Diagnostics
> >***********
> >
> >   Normally, exit status is 0 if selected lines are found and 1
> >otherwise.  But the exit status is 2 if an error occurred, unless the
> >`-q' or `--quiet' or `--silent' option is used and a selected line is
> >found.
> >
> >Is this not clear?
> 
> That's not quite the same as the info page for grep that I had.  (Do you
> mean this is the proposed new documentation?)  But yes, it is clear.
> The misleading sentence '-v inverts the exit status' was the problem I
> think.

My mistake, this was not in the last release, or rather missed the deadline
for 2.4.2,  I could not trace the origin of what triggered the change, but
it should be in 2.5


Thanks, for the feedback.

-- 
au revoir, alain
----
Aussi haut que l'on soit assis, on n'est toujours assis que sur son cul !!!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]