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
localizing $? causes exit() to ignore the argument passed to it #14681
Comments
From @avarCreated by @avarThis is a bug report is against a documented feature of perl, I know The "feature" is that you can write code that does this: $ ~/perl5/installed/bin/perl5.21.12 -wE 'exit 1; END { I.e. to quote "perldoc -f exit": [...] END routines and destructors can change the exit status by Okey, so be that is it may, but I think this is a bug: $ ~/perl5/installed/bin/perl5.21.12 -wE '{ local The documentation says that if you change the value of $? in an END Admittedly we're splitting hairs here from an implementation level The reason I ran into this was because I was writing code that could $ ~/perl5/installed/bin/perl5.21.12 -wE ' I.e. I'm calling an external program and localizing $? first, if that The "exit" documentation suggests using POSIX::_exit() if this is an Perl Info
|
Migrated from rt.perl.org#124415 (status was 'new')
Searchable as RT124415$
The text was updated successfully, but these errors were encountered: