develooper Front page | perl.perl5.porters | Postings from September 2013

[perl #119785] bsd_glob does not sort case-sensitively

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
September 14, 2013 16:45
Subject:
[perl #119785] bsd_glob does not sort case-sensitively
Message ID:
rt-3.6.HEAD-1873-1379177101-1177.119785-15-0@perl.org
Here's what I got running on Perl 5.18.0 and 'touch'-ing the same three
files as you did:

##########
perl -MFile::Glob=:bsd_glob -le 'print for bsd_glob("*")'
tt
TTT
uu

perl -MFile::Glob=:bsd_glob -le 'print for bsd_glob("*",GLOB_ALPHASORT)'
tt
TTT
uu

perl -MFile::Glob=:bsd_glob -le 'print for bsd_glob("*",GLOB_CSH)'
tt
TTT
uu

perl -MFile::Glob=:bsd_glob -le 'print for bsd_glob("*",GLOB_NOSORT)'
tt
TTT
uu

perl -MFile::Glob=:bsd_glob -le 'print for bsd_glob("*",GLOB_NOCASE)'
tt
TTT
uu

perl -MFile::Glob=:bsd_glob -le 'print for bsd_glob("*",GLOB_BRACE)'
TTT
tt
uu

##########
I think we should ask:

1. Is this behavior expected and correct?

2. If it is, what changes do we have to make in 'ext/File-Glob/Glob.pm'
so that a user of File::Glob will have the correct expectations?

Thank you very much.
Jim Keenan

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=119785

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About