diff --git a/src/etc/cargo.bashcomp.sh b/src/etc/cargo.bashcomp.sh index 24a7344f0f2..793c5c0f21e 100644 --- a/src/etc/cargo.bashcomp.sh +++ b/src/etc/cargo.bashcomp.sh @@ -1,3 +1,7 @@ +# Required for bash versions < 4.1 +# Default bash version is 3.2 on latest macOS. See #6874 +shopt -s extglob + command -v cargo >/dev/null 2>&1 && _cargo() {