Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Oct 1997 21:55:13 +0200
From:      j@uriah.heep.sax.de (J Wunsch)
To:        hackers@FreeBSD.ORG
Cc:        jacques@wired.ctech.ac.za
Subject:   Re: values for exit()
Message-ID:  <19971015215513.ZP41248@uriah.heep.sax.de>
In-Reply-To: <199710151654.LAA22736@plains.NoDak.edu>; from Mark Tinguely on Oct 15, 1997 11:54:28 -0500
References:  <199710151654.LAA22736@plains.NoDak.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
As Mark Tinguely wrote:

> >  Where can I find the exit values for
> >  exit()?  Meaning, what is the difference
> >  between eg exit(1) and exit(2)?
> 
> each application defines their return code meanings. The important
> rule is that 0 means no error, non-zero indicates an error or special
> condition.

Not necessarily.  style(9) encourages the use of the values as
documented in sysexits(3).  In particular new stuff should better
stick to it.

Of course, a utility that wishes to report just shell-script true/
false values will do fine by only using 0 or 1 for the exit values.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971015215513.ZP41248>