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

Re: case sensitive globbing



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