[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: busybox awk array length bug
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2013-10-12 2:53:46
Message-ID: 201310120453.46959.vda.linux () googlemail ! com
[Download RAW message or body]

On Sunday 04 August 2013 21:18, Alain Mouette wrote:
> Someething strange...
> On my machine, Debian, I get:
> 
> $ awk 'BEGIN{ A[1]=2; print length(A)}'
> awk: line 1: illegal reference to array A
> 
> Alain
> 
> Em 25-07-2013 15:31, John Spencer escreveu:
> > reported on IRC
> >
> > busybox awk 'BEGIN{ A[1]=2; print length(A)}'
> > 0
> >
> > gawk 'BEGIN{ A[1]=2; print length(A)}'
> > 1

Fixed in git just now: will show array size in this case.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic