Answer the question
In order to leave comments, you need to log in
How to enable regular expressions in zsh?
This expression ls +([0-9]).jpg
doesn't work in zsh, but it does in bash.
How to enable regex support in zsh?
Answer the question
In order to leave comments, you need to log in
The expression ls +([0-9]).jpg doesn't work in zsh, but it does in bash.
$ ls +([0-9]).jpg
bash: syntax error near unexpected token `('
If the extglob shell option is enabled using the shopt builtin, several extended pattern matching operators are recognized.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question