svn commit: r186737 - head/sbin/geom/class/virstor

Giorgos Keramidas keramida at
Tue Jan 6 23:43:13 UTC 2009

On Mon, 05 Jan 2009 05:44:35 +0900 (JST), Hiroki Sato <hrs at> wrote:
>  2. Otherwise, EXIT STATUS section should match the reality as
>     possible.  This means if a command returns 0 on success, 1 on
>     error, and the other values are not returned, the description in
>     the manual page should be "it exits 0 on success, and 1 if an
>     error occurs".

Agreed.  There are tools that assign special meanings to separate >0
error codes, i.e. diff3(1) which exits with:

    0   when successful

    1   when there are conflicts in the three files being merged

    2   when something unexpected but bad nonetheless happens

Being precise about the error codes is critical in this case.  It may be
equally important in other places too.

More information about the freebsd-doc mailing list