-
Output of
|
Beta Was this translation helpful? Give feedback.
Answered by
gromgit
Feb 12, 2025
Replies: 1 comment 4 replies
-
What's the output of |
Beta Was this translation helpful? Give feedback.
4 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 enableextglob
within[[...]]
.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 extglob
to your bash shell startup script.