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
stat and -T do not set errno consistently #11870
Comments
From @cpansproutstat and most filetest ops, like -r, leave errno alone when called with an unopened filehandle: $ ./perl -Ilib -le '$! = 7; print But -T sets errno: $ ./perl -Ilib -le '$! = 7; print What should be the correct behaviour? close() sets errno: $ ./perl -Ilib -le '$! = 7; print Is it stat and -r that should change? Currently, Flags: Site configuration information for perl 5.15.6: Configured by sprout at Sat Dec 31 10:12:16 PST 2011. Summary of my perl5 (revision 5 version 15 subversion 6) configuration: Locally applied patches: @INC for perl 5.15.6: Environment for perl 5.15.6: |
From zefram@fysh.orgFather Chrysostomos wrote:
Yes. It is clearly a bug for them to not set $! on error; the file -zefram |
The RT System itself - Status changed from 'new' to 'open' |
@cpansprout - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#108288 (status was 'resolved')
Searchable as RT108288$
The text was updated successfully, but these errors were encountered: