[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: exit status patch for coreutils
From: |
Paul Eggert |
Subject: |
Re: exit status patch for coreutils |
Date: |
22 Jan 2004 11:11:38 -0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
"Bernard Giroud" <address@hidden> writes:
> Does POSIX specify all exit codes that might be returned from utilities ?
It specifies them in some cases, but not all. For example, for "diff"
0 means success, 1 means differences, >1 means error. For "env" 0
means success, 127 means not found, 126 means not invokable, and 1-125
means some other error. There are other weird cases like that.
> Have you a pointer to the POSIX docs ?
http://www.unix.org/single_unix_specification/
> Might it be possible to use a
> scheme like values greater than 63 are warnings else errors...?
I suspect that'd be difficult to achieve. It sounds simpler to put a
wrapper between exit/_exit and the VMS exit.