Actions
Bug #15180
opensync awk from upstream
Start date:
Due date:
% Done:
0%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:
Description
I ran into an issue today with /usr/bin/awk that doesn't manifest on other platforms with one-true-awk:
$ awk 'BEGIN {printf("%d", 28261 * 103221)}' -2147483648 $ awk 'BEGIN {printf("%ld", 28261 * 103221)}' -2147483648 $ awk 'BEGIN {printf("%lld", 28261 * 103221)}' 579908857275351040
I don't know for sure but I think that syncing with the latest version from upstream may resolve this, specifically https://github.com/onetrueawk/awk/pull/59/files
The platforms and versions that worked correctly are NetBSD (awk version 20200218) and macOS (awk version 20200816), we are currently running "awk version Aug 27, 2018".
Updated by Jonathan Perkin about 1 year ago
Jonathan Perkin wrote:
...specifically https://github.com/onetrueawk/awk/pull/59/files
Wrong URL, this one: https://github.com/onetrueawk/awk/pull/57/files
Actions