bug-grep
[Top][All Lists]
Advanced

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

Re: grep . /; echo $?


From: Bob Proulx
Subject: Re: grep . /; echo $?
Date: Thu, 10 Nov 2005 09:00:03 -0700
User-agent: Mutt/1.5.9i

Aharon Robbins wrote:
> My two cents: this isn't worth the trouble. I've written lots of shell scripts
> in my life, and typically all one really wants to know is success/failure:
> ...
> My suggestion is to K.I.S.S.:
> 
> EXIT CODE
>       0 - found at least one match
>       1 - found no matches at all
>       2 - something went wrong

I also agree with this sentiment.  The above is the useful practical
behavior.

Bob




reply via email to

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