[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: issue with [[ -v A[\$k] ]]
From: |
alex xmb ratchev |
Subject: |
Re: issue with [[ -v A[\$k] ]] |
Date: |
Mon, 22 May 2023 00:23:42 +0200 |
On Mon, May 22, 2023, 00:11 Greg Wooledge <greg@wooledge.org> wrote:
> 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.
>
uh , to me newest release is release
i dont listen to fake 'stables'
i bet 5.2.15 this is _not_ newest ayway
> 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.
>
ah then its this , compile opt that deb doesnt do
You might be thinking of the fact that extglob is enabled by default
> inside the [[ ]] command in recent versions of bash.
>
maybe .. ..
but rather in interactive default on
chet somewhen long ago announced
.. maybe its non deb opt , maybe its [[ .. ]]
that [[ .. in interactive only .. ?
unicorn:~$ shopt | grep extglob
> extglob off
> unicorn:~$ echo @(q|a)
> bash: syntax error near unexpected token `('
> unicorn:~$ [[ a = @(q|a) ]] && echo yes
> yes
>
.. thanks mate .. :))
>