-
Output of
|
Beta Was this translation helpful? Give feedback.
Answered by
gromgit
Feb 12, 2025
Replies: 1 comment 5 replies
-
|
What's the output of |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's the problem. Extended pattern matching operators, like the
@(...)that's triggering your error message, are available in the (WAY outdated) macOS system bash, but need to be manually enabled viashopt -s extglob. Sometime after this version, the bash maintainers chose to automatically enableextglobwithin[[...]].The simplest way to resolve this problem is to
brew install bash, then use the new bash (/opt/homebrew/bin/bash). If that's not an option, you'll need to addshopt -s extglobto your bash shell startup script.