bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: large exit values (>255)


From: Sven Mascheck
Subject: Re: large exit values (>255)
Date: Thu, 26 Feb 2009 09:25:50 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Wed, Feb 25, 2009 at 01:20:50PM -0500, Mike Frysinger wrote:

> seems there's a way to get bash to report exit values greater than 255 ...

you will find the special error values
in shell.h, for instance
    #define EX_SHERRBASE    256     /* all special error values are > this. */
    #define EX_BADSYNTAX    257     /* shell syntax error */
    #define EX_USAGE        258     /* syntax error in usage */
    #define EX_REDIRFAIL    259     /* redirection failed */
    #define EX_BADASSIGN    260     /* variable assignment error */
    #define EX_EXPFAIL      261     /* word expansion failed */

> $ echo '<enter>
> <ctrl+c>
> $ echo $?
> 386

but you haven't mentioned your version.
(I don't see that with bash-3.2.48/4.0.0 on linux 2.6.23/libc2.3.6)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]