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: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 32:13:41 |
Calls: | 6,648 |
Calls today: | 3 |
Files: | 12,193 |
Messages: | 5,328,596 |