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
Testing for a directory handle bug #16391
Comments
From zebra__crossing86@hotmail.comGood Day Perl bug testers In the course of trying to solve some programming issues, I and the perl monks may have uncovered a bug See below perl monks forum entry https://www.perlmonks.org/?node_id=1208018 Matt |
From @jkeenanOn Mon, 29 Jan 2018 05:26:49 GMT, zebra__crossing86@hotmail.com wrote:
Since there's a fair amount of back-and-forth discussion in that thread, it's not easy to see what the bug is precisely. Could you please post in *this* ticket a concise description of the problem? Thank you very much. |
The RT System itself - Status changed from 'new' to 'open' |
From @sisyphus-----Original Message-----
I'm not the OP but the problem is that, on MS Windows, '-X DIRHANDLE' On perl-5.27.8: #################### C:\_32>perl -le "opendir C:\_32>perl -le "opendir D, 'comp' or die $!; print 'dir' if -d D;" C:\_32>perl -le "opendir D, 'comp' or die $!; print 'dir' if -d \*D;" And no mention of any such behaviour (afaics) in either the -X documentation Is there really no way to implement '-X DIRHANDLE' on Windows ? Cheers, |
From @cpansproutOn Mon, 29 Jan 2018 15:51:21 -0800, sisyphus wrote:
For -f and -d, considering that perl *knows* whether it is a directory handle, it probably is possible. It shouldn’t even require a system call. But, then, I really haven’t thought through the consequences, and I am not a Windows user. -- Father Chrysostomos |
Migrated from rt.perl.org#132779 (status was 'open')
Searchable as RT132779$
The text was updated successfully, but these errors were encountered: