help-bash
[Top][All Lists]
Advanced

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

Re: issue with [[ -v A[\$k] ]]


From: Greg Wooledge
Subject: Re: issue with [[ -v A[\$k] ]]
Date: Sun, 21 May 2023 18:11:14 -0400

On Sun, May 21, 2023 at 11:47:00PM +0200, alex xmb ratchev wrote:
> i tried on deb 5.2.15 release

That's definitely not a "release".  That's the version of bash which is
currently in the Debian testing and unstable branches.  Stable has 5.1.

> btw wasnt it 'in interactive extglob is enabled'
> not for this bash deb has ..

No, that's never been true.  Extglob may be enabled by default with a
compile-time option, but Debian doesn't use that option, and never has.

You might be thinking of the fact that extglob is enabled by default
inside the [[ ]] command in recent versions of bash.

unicorn:~$ shopt | grep extglob
extglob         off
unicorn:~$ echo @(q|a)
bash: syntax error near unexpected token `('
unicorn:~$ [[ a = @(q|a) ]] && echo yes
yes



reply via email to

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