Re: shell error codes
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 11/07/04
- Next message: Stephane CHAZELAS: "Re: cat problem"
- Previous message: Barry Margolin: "Re: cat problem"
- In reply to: gregg: "shell error codes"
- Next in thread: gregg: "Re: shell error codes"
- Reply: gregg: "Re: shell error codes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 07 Nov 2004 13:56:53 -0500
In article <418e6396$0$32079$636a15ce@news.free.fr>,
gregg <greggory@netJUSTSAYNOcourrier.com> wrote:
> Hello,
>
> I was perusing the different errno.h, bits/errno.h, asm/errno.h, but all
> error codes aren't there (and manpages do not contain the number)
>
> I mean: how can i relate the error code returned by the shell to
> something more intelligible (the simple macro E_something would do the
> trick)
The shell doesn't report error codes, it reports the exit status of
programs. These are not standardized, except that 0 means success and
anything else is considered failure. The man page for a program should
explain if it assigns any special meanings to specific exit codes (see
"man grep" for an example).
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Next message: Stephane CHAZELAS: "Re: cat problem"
- Previous message: Barry Margolin: "Re: cat problem"
- In reply to: gregg: "shell error codes"
- Next in thread: gregg: "Re: shell error codes"
- Reply: gregg: "Re: shell error codes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|