Re: Mutt 1.5.16 editor exit status brain damage
Derek Martin typed (on Sat, Jun 16, 2007 at 01:03:47PM -0400):
|
| It does not apply to other system commands, because:
|
| - The standards assume that "standard utilities" have a non-zero
| exit status when an error condition has occured
Depends on the command. My man page for grep|egrep|fgrep says:
Exit values
Exit status is 0 if any matches are found,
1 if no matches are found, and 2 for syntax
errors or inaccessible files.
Not finding a certain string in some files means that it is *false* that
this string resides in these files. I wouldn't characterize that as any
kind of *error*.
--
JP
==> http://www.frappr.com/cusm <==