busybox awk array length bug
John Spencer
maillist-busybox at barfooze.de
Sun Aug 4 20:58:19 UTC 2013
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.
More information about the busybox
mailing list