Project

General

Profile

Actions

Bug #15180

open

sync awk from upstream

Added by Jonathan Perkin about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Category:
cmd - userland programs
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".

Actions #1

Updated by Jonathan Perkin about 1 year ago

Actions

Also available in: Atom PDF