|
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]}'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 --versionin bash on cygwin. |
[Prev in Thread] | Current Thread | [Next in Thread] |