bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] posix flag bug?


From: Ed Morton
Subject: [bug-gawk] posix flag bug?
Date: Sat, 26 Sep 2015 08:45:10 -0500
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

Since multi-dimensional arrays are gawk extensions I expected this:
$ echo 'x' | awk --posix '{arr[1][2]=$0; for (i in arr) for (j in arr[i]) print arr[i][j]}'
x
to fail, but clearly it didn't. It didn't fail with the `--traditional` flag either. Shouldn't it?

    Ed.

P.S. I'm using:
$ awk --version
GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.3, GNU MP 6.0.0)
in bash on cygwin.

reply via email to

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