<<< Date Index >>>     <<< Thread Index >>>

Re: Mutt 1.5.16 editor exit status brain damage



On 2007-06-15 14:25:29 -0400, Derek Martin wrote:
> It's not broken.  The application developer has the right to use any
> exit status he wants.

However in POSIX (and even before POSIX), a nonzero value means an
unsuccessful termination. If the application developer chose to return
a nonzero value, this is probably because he wanted such an error to
be reported.

> Mutt CAN NOT make assumptions about what the exit status means.

The only way to avoid making assumptions is to follow what the
standards say (regarding all exit status values as equivalent is also
an assumption). And POSIX is clear: 0 = success, nonzero = failure.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)