Re: is it really required that arr['1']=bla gives syntax error instead o
From:
Greg Wooledge
Subject:
Re: is it really required that arr['1']=bla gives syntax error instead of parse '1' as 1
Date:
Mon, 19 Jul 2021 12:45:16 -0400
> On Mon, Jul 19, 2021, 17:57 Greg Wooledge <greg@wooledge.org> wrote:
> > In <https://lists.gnu.org/archive/html/bug-bash/2021-02/msg00189.html>
> > Chet says that "The contents of (( are expanded as if they are between
> > double quotes".
On Mon, Jul 19, 2021 at 06:27:28PM +0200, Alex fxmbsw7 Ratchev wrote:
> (( "2" + 4 ))
> noerr
Yes. Double quotes work. Single quotes don't. I believe this is
because of what Chet said about the contents of (( being treated as
if they're inside double quotes already.