]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
one-true-awk: import 20210221 (1e4bc42c53a1) which fixes a number of bugs
authorWarner Losh <imp@FreeBSD.org>
Wed, 7 Jul 2021 23:30:35 +0000 (17:30 -0600)
committerWarner Losh <imp@FreeBSD.org>
Sat, 10 Jul 2021 17:11:15 +0000 (11:11 -0600)
commit6edf5082bab71cf923efff9f18e38efe5b83b0ec
treea6f397d065ed028636706527a80989322f794768
parenta711add6ceffc58dabb930a0fdd685ddbac7b83c
one-true-awk: import 20210221 (1e4bc42c53a1) which fixes a number of bugs

Import the latest bsd-features branch of the one-true-awk upstream:

o Move to bison for $YACC
o Set close-on-exec flag for file and pipe redirects that aren't std*
o lots of little fixes to modernize ocde base
o free sval member before setting it
o fix a bug where a{0,3} could match aaaa
o pull in systime and strftime from NetBSD awk
o pull in fixes from {Net,Free,Open}BSD (normalized our code with them)
o add BSD extensions and, or, xor, compl, lsheift, rshift (mostly a nop)

Also revert a few of the trivial FreeBSD changes that were done slightly
differently in the upstreaming process. Also, our PR database may have
been mined by upstream for these fixes, and Mikolaj Golub may deserve
credit for some of the fixes in this update.

Suggested by: Mikolaj Golub <to.my.trociny@gmail.com>
PR: 143363,143365,143368,143369,143373,143375,214782
Sponsored by: Netflix

(cherry picked from commit f39dd6a9784467f0db5886012b3f4b13899be6b8)
20 files changed:
contrib/one-true-awk/ChangeLog
contrib/one-true-awk/FIXES
contrib/one-true-awk/REGRESS
contrib/one-true-awk/awk.1
contrib/one-true-awk/awk.h
contrib/one-true-awk/awkgram.y
contrib/one-true-awk/b.c
contrib/one-true-awk/bugs-fixed/missing-precision.ok
contrib/one-true-awk/bugs-fixed/negative-nf.ok
contrib/one-true-awk/lex.c
contrib/one-true-awk/lib.c
contrib/one-true-awk/main.c
contrib/one-true-awk/makefile
contrib/one-true-awk/maketab.c
contrib/one-true-awk/parse.c
contrib/one-true-awk/proctab.c
contrib/one-true-awk/proto.h
contrib/one-true-awk/run.c
contrib/one-true-awk/tran.c
usr.bin/awk/Makefile