help-bash
[Top][All Lists]
Advanced

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

Re: is it really required that arr['1']=bla gives syntax error instead o


From: Alex fxmbsw7 Ratchev
Subject: Re: is it really required that arr['1']=bla gives syntax error instead of parse '1' as 1
Date: Mon, 19 Jul 2021 19:14:45 +0200

it was for trhe project of me, bind diff bash features separated by fa, ..
gawk does the code that bash back sources, and the stuff is ready

one part is the array code, had to nake a ( .. ~ /^[0-9]+$ ) to not ''
content bugfix

it ust bugged me, wished better

i also hope to present my project somewhen here

peace


On Mon, Jul 19, 2021, 18:45 Greg Wooledge <greg@wooledge.org> wrote:

>
> > 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.
>
>


reply via email to

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