bug-gawk
[Top][All Lists]
Advanced

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

Re: Critical gawk -M bug still in Debian 11


From: Eli Zaretskii
Subject: Re: Critical gawk -M bug still in Debian 11
Date: Wed, 14 Feb 2024 17:20:43 +0200

> From: alexandre.ferrieux@orange.com
> Date: Wed, 14 Feb 2024 10:28:36 +0100
> 
> > 2. On my system, with gawk 5.1.0, I see:
> > 
> > $ ( echo 1 2 ; echo 3 4 ; echo 3 5) |
> >> gawk-5.1.0 -M '{x=$1+0;t[$1]+=$2}END{for(a in t)print "t["a"]="t[a]}'
> > t[1]=2
> > t[3]=9

That's not what I see with Gawk 5.1.0 here.  I see:

  (echo 1 2 & echo 3 4 & echo 3 5) | gawk-5.1.0 -M "{x=$1+0;t[$1]+=$2}END{for(a 
in t)print \"t[\"a\"]=\"t[a]}"
    t[1]=
    t[3]=
    t[3]=

Whereas with Gawk 5.3.0 I see

    t[1]=2
    t[3]=9

as expected.  This is on MS-Windows, FTR (which is why I used &
instead of ; and double-quotes instead of single quotes), and with
Gawk built from unmodified sources in both cases.



reply via email to

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