[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] fatal: split: second argument is not an array
From: |
Hermann Peifer |
Subject: |
Re: [bug-gawk] fatal: split: second argument is not an array |
Date: |
Mon, 17 Mar 2014 19:32:17 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
On 2014-03-17 18:53, Aharon Robbins wrote:
No, it doesn't:
(...)
So, I don't think anything needs changing...
Hmm. I tought I had seen an empty element b[1] in the debug output, but
this must have been auto-suggestion, or similar. Array `b' is empty, not
b[1]. Sorry for the noise.
Hermann
$ cat test.awk
BEGIN {
delete b[1][1]
print 42
}
$ awk -D -f test.awk
gawk> w b
Watchpoint 1: b
gawk> r
Starting program:
Stopping in BEGIN ...
Watchpoint 1: b
Old value: untyped variable
New value: array, 0 elements
main() at `test.awk':3
3 print 42
gawk> p @b
array `b' is empty
gawk> n
42
Program exited normally with exit value: 0