The GAWK distro contains an example program called arraymax.awk - that calculates the maximum of a series of input values.
On Tuesday, January 18, 2022 at 9:47:23 AM UTC-5, Kenny McCormack wrote:
The GAWK distro contains an example program called arraymax.awk - that
calculates the maximum of a series of input values.
Actually, it's just an inaptly-named sample program to demonstrate some array features,
not a general-purpose max calculator. From the docs:
So I don't see why it's a bug. It does what it says it does, but I agree that it certainly
does not calculate maximum values in the general case.
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 793 |
Nodes: | 10 (1 / 9) |
Uptime: | 38:07:33 |
Calls: | 11,106 |
Calls today: | 3 |
Files: | 186,086 |
Messages: | 1,751,440 |