[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: busybox awk array length bug
From: John Spencer <maillist-busybox () barfooze ! de>
Date: 2013-08-04 20:58:19
Message-ID: 51FEC06B.3080001 () barfooze ! de
[Download RAW message or body]
On 08/04/2013 09:18 PM, 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
>
this happens with ancient versions of gawk,
for example GNU Awk 3.1.2.
more recentish ones return 1:
~ $ gawk 'BEGIN{ A[1]=2; print length(A)}'
1
~ $ gawk --version
GNU Awk 3.1.6
same for 4.0.0.
_______________________________________________
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