Search code examples
emacspattern-matchingelispglobeshell

Case-insensitive matching with Eshell?


How can you do case-insensitive pattern matching with Eshell? With Zsh, one can use "globbing tags" (i.e., if the extended_glob is turned on) such as in

print L(#i)in(#I)ux

which would match LINux for instance.

Is there anything like that for Eshell? From what I know Eshell doesn't have a support for something like Zsh's "globbing tags", but do you know if there is an Eshell predicate for case-insensitive matching? If there isn't, do you have any suggestion of how to define a predicate in Eshell to do that?

Thanks!


Solution

  • You can set the variable eshell-glob-case-insensitive to true to enable case-insensitive globbing in eshell.