bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A BUG in bash-5.3 and extglob


From: pourko
Subject: Re: A BUG in bash-5.3 and extglob
Date: Sun, 31 Aug 2025 15:03:02 +0200 (CEST)

Aug 30, 2025, 12:08 by greg@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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]