Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using negative exit code should probably be forbidden (exit -99999) #5397

Open
p6rt opened this issue Jun 23, 2016 · 3 comments
Open

Using negative exit code should probably be forbidden (exit -99999) #5397

p6rt opened this issue Jun 23, 2016 · 3 comments
Labels
9999 RFC Request For Comments

Comments

@p6rt
Copy link

p6rt commented Jun 23, 2016

Migrated from rt.perl.org#128468 (status was 'open')

Searchable as RT128468$

@p6rt
Copy link
Author

p6rt commented Jun 23, 2016

From @AlexDaniel

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.

@p6rt
Copy link
Author

p6rt commented Jul 28, 2016

From @geekosaur

On Thu, Jun 23, 2016 at 5​:48 PM, Alex Jakimenko <
perl6-bugs-followup@​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
allbery.b@​gmail.com ballbery@​sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

@p6rt
Copy link
Author

p6rt commented Jul 28, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt added 9999 RFC Request For Comments labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9999 RFC Request For Comments
Projects
None yet
Development

No branches or pull requests

1 participant