octave-maintainers
[Top][All Lists]
Advanced

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

Re: exit value


From: Mike Miller
Subject: Re: exit value
Date: Tue, 16 Jul 2013 01:01:30 -0400

On Mon, Jul 15, 2013 at 5:11 PM, Jordi Gutiérrez Hermoso
<address@hidden> wrote:
> On 15 July 2013 15:35, Stephen Montgomery-Smith <address@hidden> wrote:
>> Yes, but shouldn't -1 print as 255?
>
> No, it's a bit complicated. The exit code is actually 16 bits, but
> usually stored in 32 bit integers, but you're usually interested in 8
> bits for the exit code and 8 more bits for the signal (SIGSEGV or
> SIGKILL or whatever).
>
>    
> http://stackoverflow.com/questions/2726447/why-is-the-exit-code-255-instead-of-1-in-perl
>
> At any rate, there's no bug in Octave here. Perhaps in the complexity
> of the POSIX standard regarding exit codes.

Actually I think this was a bug, fixed with the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/aabe12e5fdc1

-- 
mike


reply via email to

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