Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: case sensitive globbing



Yes, it works.
I thought case_glob was unset because I wasn't seeing it in the list produced by setopt, but it seem that one should explicitly call setopt no_case_glob like you showed me to

thanks

Pier Paolo Grassi


Il giorno mer 29 set 2021 alle ore 12:27 Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx> ha scritto:
On Wed, Sep 29, 2021 at 12:21 PM Pier Paolo Grassi <pierpaolog@xxxxxxxxx> wrote:
>
> Hello, I have case_glob unset. should:
>
> *a*
>
> match the file Abc or not?

Yes, in locales where 'a' is lowercase 'A' it should.

    () {
      emulate -L zsh -o no_case_glob
      local LC_ALL=C
      touch Abc
      print -r -- *a*
    }

    Abc

Does this work for you?

Roman.


Messages sorted by: Reverse Date, Date, Thread, Author