]> git.draconx.ca Git - dxcommon.git/commitdiff
Avoid local array parameters in awk scripts.
authorNick Bowler <nbowler@draconx.ca>
Sun, 3 Dec 2023 05:21:49 +0000 (00:21 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 3 Dec 2023 06:07:51 +0000 (01:07 -0500)
ULTRIX 4.5 nawk appears to not support local array parameters on user-
defined functions (it is OK for array arguments passed by the caller).
Things seems to work on the first call but on the second call the array
is not empty and other weird behaviours occur.

Using a global array instead seems OK and avoids the problem.


No differences found