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
perl -e "open A, 'dir|';print $?" should be 0 on MSWin32 #16664
Comments
From Vadim.Konovalov@dell.comCreated by vadim.konovalov@dell.commailto:vadim.konovalov@dell.comFor this simple one-liner D:\apps\perl-old\perl584\bin>perl -e "open A, 'dir|';print $?" on Cygwin this outputs 0 as expected, as well as on linux freebsd etc reading "perldoc perlvar" gives me think that it should output 0 Perl Info
|
From @tonycozOn Tue, 21 Aug 2018 13:06:20 -0700, Vadim.Konovalov@dell.com wrote:
Possibly introduced (at least for NT-ish systems) by 40c7cc6. I don't see anything in the documentation for open() nor for $? The behaviour you're seeing on Linux isn't that open is setting $? to 0, it just isn't touching it: $ perl -le '$? = -1; open F, "ls |"; print $?' So perhaps pp_open() should be preserving PL_statusvalue ($?). Not that I can see much reason for you to be checking $? after a successful open. Tony |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#133463 (status was 'open')
Searchable as RT133463$
The text was updated successfully, but these errors were encountered: