[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gawk] Fwd: PROCINFO["sorted_in"] in END zone issue
From: |
Denis Shirokov |
Subject: |
[bug-gawk] Fwd: PROCINFO["sorted_in"] in END zone issue |
Date: |
Tue, 21 Aug 2012 12:59:52 +0300 |
Hi GAWK!
Here is the another one issue (GAWK 4.0.1 Win32):
END{
A[1]="A1"; A[2]="A2"; A[3]="A3";
PROCINFO["sorted_in"]="_sort"
for ( ptr in A ) {
print "`" ptr "':`" A[ptr] "'" } }
func _sort(i1, v1, i2, v2) {
return i1 < i2 ? -1 : 1 }
Expected output:
`1':`A1'
`2':`A2'
`3':`A3'
Actual:
gawk stop executing script and hangs up
This is for END{} zone only and only if PROCINFO["sorted_in"]!="".
Content of the array A doesn't matter.
- [bug-gawk] Fwd: PROCINFO["sorted_in"] in END zone issue,
Denis Shirokov <=