Subject: Re: postinstall exit status
To: None <tech-userlevel@netbsd.org>
From: Pavel Cahyna <pavel@netbsd.org>
List: tech-userlevel
Date: 09/29/2007 19:16:45
On Sat, Sep 29, 2007 at 03:49:09PM +0200, Hubert Feyrer wrote:
> On Sat, 29 Sep 2007, Pavel Cahyna wrote:
> >>Maybe follow grep(1)'s example:
> >>0 - no problem
> >>1 - a check/fix failed
> >>2 - an error ocurred
> >
> >OK. But then check will return a different code than fix, because when
> >"check" fails, "fix" is needed and it typically succeeds.
> 
> I don't understand. Why do you need different codes to indicate if a check or a fix failed - 
> don't you think people remember what they called? ;)

I don't need it but somebody maybe might not like the inconsistent return
codes...

Pavel