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
Please provide option (or pragma) to make die exit 255 #16585
Comments
From @ijacksonCreated by @ijacksonThis is a bug report for perl from ijackson@chiark.greened.org.uk, ----------------------------------------------------------------- The behaviour of die with respect to the whole perl interpreter's exit This can mostly be worked around with $SIG{__DIE__}. But this is extremely awkard. And not only because of $SIG{__DIE__}'s Even `use' can cause `die' with an unanticipated exit status. So So the application has to put something like this at the top of the Furthermore, there does not seem to be a sensible way to make sure the I think the best way to solve this problem is to do at least this: 0. Provide a new single-character command line option, A more comprehensive plan would be: 1. Provide a new special variable $^? which is the fixed exit status 2. Provide a single-character command line option to set $^? to 255. 3. Change perl so that failure to open the script file any case causes 1+2 or 1+3 would be sufficient. If relying on 2 rather than 3, we require a single-character option If combined with a fix to bug #30296, option 1 would have the side It would also be possible to solve this problem with a pragma, but Perl Info
|
From @jkeenanThis ticket has been duplicated by RT 133287, submitted by the same author. Since this ticket did not show up well in RT, I'm closing this ticket in favor of 133287. Thank you very much. -- |
The RT System itself - Status changed from 'new' to 'open' |
@jkeenan - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#133274 (status was 'rejected')
Searchable as RT133274$
The text was updated successfully, but these errors were encountered: