On 5/25/21 8:58 PM, Nora Platiel wrote:
Bash Version: 5.1
Patch Level: 8
Release Status: release
Hello,
Repeat-By:
$ shopt -s dotglob extglob
$ echo !(.foo)
. .. .other files
The doc says: "The filenames '.' and '..' must always be matched explicitly, even if
dotglob is set."
When dotglob
Hello,
> This is behavior that changed more than ten years ago.
I thought it changed in this commit:
https://git.savannah.gnu.org/cgit/bash.git/commit/?id=ac50fbac377e32b98d2de396f016ea81e8ee9961
2014-02-26 -> 7.2 years ago
But yes, I know it's old stuff and I was not implying a regression, just
>> >[[ ! 1 -eq 1 ]]; echo $?
>> >[[ ! ! 1 -eq 1 ]]; echo $?
>> >
>> > would both result in `1', since parsing `!' set CMD_INVERT_RETURN
>> > instead of toggling it.
Definitely, the section of the man page for "[[" says that "!" is a
negation operator, so "! ! foo" must yield the same resu