Aug 30, 2025, 12:08 by g...@wooledge.org: > This is the expected behavior. >
I am actually disturbed by two problems here: One is the brutal abort of the whole script on a "syntax error", and the other is the suggestion that this... $ shopt -s extglob; echo !(this) ...can behave differently than this... $ shopt -s extglob $ echo !(this) Notice that there are no "compound" things like if-thens or do-loops in this one. On systems where extglob is OFF by default, the first snippet will crash and burn, while the second snippet will work just fine. Honestly, I find this very disturbing. -- Pourko