in reply to Re: Edge case in Text::Glob
in thread Edge case in Text::Glob

> If you had found an issue there you can try fixing it and submitting a patch.

well sure, but you know the song "don't reinvent the wheel" and I doubt I'm the first one using it.

I also had to realize that there are many "glob" dialects around, so I first had to analyze what Perl's file glob is doing.

To my surprise (and horror) I noticed that <KSR*> will match case insensitive on Win (eg Ksr_1 ) while being case sensitive on Linux. That's a portability issue IMHO.

And globbing in the file explorer won't have any idea of character classes.

Hence I don't even have a clear picture what the requirements should be for a reimplementation, or if Text::Glob is even patchable.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^3: Edge case in Text::Glob
by Fletch (Bishop) on Mar 01, 2022 at 17:45 UTC

    It's explicitly noted (a couple levels deep, granted) that glob without extra flags is implicitly case insensitive for VMS and Win32.

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

        Quoth perldoc -f glob

        This operator is implemented using the standard "File::Glob" extension. See File::Glob for details, including "bsd_glob", which does not treat whitespace as a pattern separator.

        Edit: point taken though; not sure what the other modules sit on top of if not the core glob.

        Additionally: I'm not extremely surprised if other implementations mirror the details of the builtin glob as far as their behaviors go.

        The cake is a lie.
        The cake is a lie.
        The cake is a lie.