Skip to content

cmake ctest bash completion issue #5950

Answered by gromgit
pjaol asked this question in Casks
Feb 10, 2025 · 1 comments · 4 replies
Discussion options

You must be logged in to vote
echo $BASH_VERSION
3.2.57(1)-release

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 via shopt -s extglob. Sometime after this version, the bash maintainers chose to automatically enable extglob 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 add shopt -s extglob to your bash shell startup script.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@pjaol
Comment options

@gromgit
Comment options

Answer selected by pjaol
@pjaol
Comment options

@gromgit
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Casks
Labels
None yet
2 participants