[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: large exit values (>255)
From: |
Jan Schampera |
Subject: |
Re: large exit values (>255) |
Date: |
Thu, 26 Feb 2009 07:24:53 +0100 |
User-agent: |
Mozilla-Thunderbird 2.0.0.19 (X11/20090103) |
Mike Frysinger wrote:
> $ true
> $ echo '<enter>
> <ctrl+d>
> $ echo $?
> 258
>
> $ true
> $ echo '<enter>
> <ctrl+d>
> $ echo '<enter>
> <ctrl+c>
> $ echo $?
> 386
Just tested it, hopefully it's as easy as changing every
itos (last_command_exit_value)
to
itos (last_command_exit_value & 0xFF)
in subst.c (seems 2 times).
I don't provide a patch because it was a quick look and I don't know if
any other parts of the code are involved (if yes, the patch would be
awfully wrong).
J.