ota: Merge 20240623 (bsd-features) from ota 9f971fba471bMerge from upstream. The system-status test was modifed upstream, but itstill doesn't fit into ATF, so those changes weren't brought in.Fr
ota: Merge 20240623 (bsd-features) from ota 9f971fba471bMerge from upstream. The system-status test was modifed upstream, but itstill doesn't fit into ATF, so those changes weren't brought in.From FIXES:Jun 23, 2024 Fix signal for system-status test. Thanks to Tim van der Molen. Rewrite if-else chain as switch. Thanks to Andrew Sukach.May 27, 2024 Spelling fixes and removal of unneeded prototypes and extern. Thanks to Jonathan Gray.May 4, 2024 Fixed a use-after-free bug with ARGV for "delete ARGV". Also ENVtab is no longer global. Thanks to Benjamin Sturz for spotting the ARGV issue and Todd Miller for the fix.May 3, 2024: Remove warnings when compiling with g++. Thanks to Arnold Robbins.Sponsored by: Netflix
show more ...
ota: Merge one true awk 20240422 (a3b68e649d2d)Apr 22, 2024: fixed regex engine gototab reallocation issue that was introduced during the Nov 24 rewrite. Thanks to Arnold Robbins. Fixed a scan b
ota: Merge one true awk 20240422 (a3b68e649d2d)Apr 22, 2024: fixed regex engine gototab reallocation issue that was introduced during the Nov 24 rewrite. Thanks to Arnold Robbins. Fixed a scan bug in split in the case the separator is a single character. thanks to Oguz Ismail for spotting the issue.Mar 10, 2024: fixed use-after-free bug in fnematch due to adjbuf invalidating the pointers to buf. thanks to github user caffe3 for spotting the issue and providing a fix, and to Miguel Pineiro Jr. for the alternative fix. MAX_UTF_BYTES in fnematch has been replaced with awk_mb_cur_max. thanks to Miguel Pineiro Jr.Sponsored by: Netflix
awk: Fix the testsI'd forgotten that we have to adjust the stderr tests fromupstream. Remove the OK files. Also remove system-status.*. Theserestore the fixes I made in 517e52b6c21c which were l
awk: Fix the testsI'd forgotten that we have to adjust the stderr tests fromupstream. Remove the OK files. Also remove system-status.*. Theserestore the fixes I made in 517e52b6c21c which were lost when I importedthe last version of awk.Also, force LANG to be C.UTF-8 when testing to ensure that stray langsettings don't fail tests.Sponsored by: Netflix
Merge one true awk from 2024-01-22 for the Awk Second Edition supportThis brings in Unicode support, CSV support and a number of bug fixes.They are described in _The AWK Programming Language_, Sec
Merge one true awk from 2024-01-22 for the Awk Second Edition supportThis brings in Unicode support, CSV support and a number of bug fixes.They are described in _The AWK Programming Language_, Second Edition, byAl Aho, Brian Kernighan, and Peter Weinberger (Addison-Wesley, 2024,ISBN-13 978-0138269722, ISBN-10 0138269726).Sponsored by: Netflix
Revert "awk: Merge upstream 2nd Edition Awk Book"The pre-push testing I did turned out to be testing the old version withthe old testsuite (for reasons I don't understnad). There's issues withthe
Revert "awk: Merge upstream 2nd Edition Awk Book"The pre-push testing I did turned out to be testing the old version withthe old testsuite (for reasons I don't understnad). There's issues withthe new version, the new test in the suite or (likely) both. Revertuntil they can be chased down.This should also fix the github CI that's gone red since this commit.This reverts commit 3fd60a6b73ac01a72df89751f173970fae4cae73, reversingchanges made to 194df014feebd8b169b41ecd75ae73d63a792d6b.Sponsored by: Netflix
awk: Merge upstream 2nd Edition Awk BookMerge in the November 2nd, 2023 version of one true awk.This brings in Unicode support, CSV support and a number of bug fixes.Sponsored by: NetflixRevi
awk: Merge upstream 2nd Edition Awk BookMerge in the November 2nd, 2023 version of one true awk.This brings in Unicode support, CSV support and a number of bug fixes.Sponsored by: NetflixReviewed by: delphijDifferential Revision: https://reviews.freebsd.org/D42447
Awk: Add error fileAdd the expected output on stderr file.Sponsored by: Netflix
awk: Move to using two sets of testsUpstream one-true-awk has two sets of tests. These are in addition toNetBSD's tests we're using. The 'bugs-fixed' tests from upstream areready to use as-is (mo
awk: Move to using two sets of testsUpstream one-true-awk has two sets of tests. These are in addition toNetBSD's tests we're using. The 'bugs-fixed' tests from upstream areready to use as-is (more or less). However, the 'tests' from upstreamare not, so for now we'll just use the netbsd and bugs-fixed tests.They provide an OK workout and are better than nothing, though the teststhemselves are for specific esoteric things.The upstream bugs-fixed tests are *ALMOST* a drop in. However, 3 testfor errors and the upstream test jig mashes stdout and stderr together,which atf doesn't do, so make a tiny tweak to the upstream tests that Ihope to upstream. Plus upstream has ../a.out: instead of awk: in theoutput. Not sure how to deal with this yet, so I've not proposedanything upstream and have changed the test locally.In addition, the system-status.awk test is not suitable to run in ATF.It wants to force sh to dump core, but kyua doesn't seem to allow thatsometimes so the test will fail or pass based on whether or not a coredump can be created. Since it's unstable, remove it.This required moving the netbsd tests to a new direcotry, so updatemtree files as well. The change is useless for 'make check' without it.Sponsored by: NetflixDifferential Revision: https://reviews.freebsd.org/D31376
awk: Merge 20210729 from One True Awk upstream (0592de4a)July 27, 2021: As per IEEE Std 1003.1-2008, -F "str" is now consistent with -v FS="str" when str is null. Thanks to Warner Losh.July 24,
awk: Merge 20210729 from One True Awk upstream (0592de4a)July 27, 2021: As per IEEE Std 1003.1-2008, -F "str" is now consistent with -v FS="str" when str is null. Thanks to Warner Losh.July 24, 2021: Fix readrec's definition of a record. This fixes an issue with NetBSD's RS regular expression support that can cause an infinite read loop. Thanks to Miguel Pineiro Jr. Fix regular expression RS ^-anchoring. RS ^-anchoring needs to know if it is reading the first record of a file. This change restores a missing line that was overlooked when porting NetBSD's RS regex functionality. Thanks to Miguel Pineiro Jr. Fix size computation in replace_repeat() for special case REPEAT_WITH_Q. Thanks to Todd C. Miller.Also, included the tests from upstream, though they aren't yet connectedto the tree.Sponsored by: Netflix
one-true-awk: import 20210221 (1e4bc42c53a1) which fixes a number of bugsImport the latest bsd-features branch of the one-true-awk upstream:o Move to bison for $YACCo Set close-on-exec flag for
one-true-awk: import 20210221 (1e4bc42c53a1) which fixes a number of bugsImport the latest bsd-features branch of the one-true-awk upstream:o Move to bison for $YACCo Set close-on-exec flag for file and pipe redirects that aren't std*o lots of little fixes to modernize ocde baseo free sval member before setting ito fix a bug where a{0,3} could match aaaao pull in systime and strftime from NetBSD awko 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 slightlydifferently in the upstreaming process. Also, our PR database may havebeen mined by upstream for these fixes, and Mikolaj Golub may deservecredit for some of the fixes in this update.Suggested by: Mikolaj Golub <to.my.trociny@gmail.com>PR: 143363,143365,143368,143369,143373,143375,214782Sponsored by: Netflix
Merge from upstream at 4189ef5d from https://github.com/onetrueawk/awk.gitNote: this backs out a number of changes we've made to awk becausethey aren't upstream, but are on the vendor branch. Thos
Merge from upstream at 4189ef5d from https://github.com/onetrueawk/awk.gitNote: this backs out a number of changes we've made to awk becausethey aren't upstream, but are on the vendor branch. Those will bereapplied. svn makes it needlessly difficult to know which ones, butat least r315426, r301289, and maybe r301691, though there may beothers too. None of these are critical, so bisecting through thispoint is safe for all but awk regression tests :).