On 2022-08-11 10:26:44 (+0800), Paul Eggert via tz wrote:
Thanks for reporting the problem. This appears to be a bug in macOS awk, as it is reporting a syntax error here:
stdoff_column = 2 * /^Zone/ + 1
even though POSIX says this is a valid awk statement.
I don't observe the bug on FreeBSD 13.0, where "awk --version" reports "awk version 20190529 (FreeBSD)".
I do see this on FreeBSD 13.1 which has awk version 20210215.
Please try the attached patch, which I have installed in the development repository. I hope it works around the macOS bug, but I don't have easy access to macOS to try it. If this patch works for you, please file a bug report with whoever is maintaining 'awk' on macOS, as statements like the above should work.
This patch works on FreeBSD. Thanks for the quick fix! Philip -- Philip Paeps Senior Reality Engineer Alternative Enterprises