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!
(#i)
flag at the beginning of the path like(#i)/Doc/
Zsh will search forDOC
,DoC
, etc. But because you can also use the flag in the middle of your search pattern, Zsh allows you to decrease the number of matches the shell will look for -- which may speed up the matching process. For this reason, I think it would be nice if eshell would have something like Zsh flags. But maybe I'm just complaining too much :) – Norahnorbert