On Thu, Jun 23, 2016 at 5:48 PM, Alex Jakimenko <
perl6-bugs-follo...@perl.org> wrote:

> exit -99999     # exit code is 97
> exit -999999    # exit code is 193
> exit -999999999 # exit code is 1
> exit -99999999  # exit code is 1
>
> I think that only non-negative numbers should be allowed.
>

Historically -1 has been used (on unixlikes) to mean 255; in the old days,
whether the exit status was signed or not was per platform/implementation.
(This is why shells produce 255 for command not found.)

And... well, try these in perl 5 and see what you get. (tl;dr: the same
values as rakudo)

-- 
brandon s allbery kf8nh                               sine nomine associates
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Reply via email to