vendor/awk: upgrade from
20220912 to
20240122
This version is described in "The Awk Programming Language", Second
Edition, by Al Aho, Brian Kernighan, and Peter Weinberger
(Addison-Wesley, 2024, ISBN-13 978-
0138269722, ISBN-10
0138269726).
Features:
- support UTF-8 input
- support CSV (comma-separated values) input
Fixes:
- see FIXES and FIXES.1e
- see commit history at: https://github.com/onetrueawk/awk/commits/master
vendor/awk: upgrade from
20200702 to
20220912
Bugfixes and maintenance:
- Clean up xfree, remove redundant NULL check.
- Stop leaking tempcells from extra arguments in format.
- Fix leak of qstring result in setclvar.
- Fix leak of regex string representations.
- Fix memory leak in string assignment to built-ins.
- Eliminate file management memory leak.
- When closing, don't flush input streams
- Heap buffer overflow from PR #83 fixed in #121.
For details, see FIXES, or commit history at
https://github.com/onetrueawk/awk/commits/master
vendor/awk: upgrade from
20200612 to
20200702
Bugfixes and maintenance:
- rename dprintf to DPRINTF and use C99 cpp variadic arguments
- fixed backslash not matching against [[:punct:]] (and other
similar character classes)
- fixed concatenation regression
- fixed regression with changed SUBSEP in subscript
For details, see FIXES, or commit history at
https://github.com/onetrueawk/awk/commits/master
vendor/awk: upgrade from
20121220 to
20200612
Summary of notable changes:
- fixed buffer overflow in error reporting
- OFS value used to rebuild the record was incorrect
- add POSIX standard %a and %A to supported formats
- decrementing NF did not change $0
- unary plus on a string constant returned the string
- avoid undefined behaviour when using ctype(3) functions in relex()
- make getline handle numeric strings
- added support for POSIX-standard interval expressions in regexps
- use of random(3) as the random number generator
- support POSIX-specified C-style escape sequences "\a" and "\v" in
command line arguments and regular expressions
- fix various array / memory overruns
- import code from NetBSD awk that implements RS as a regular expression
- add an optimization for string concatenation
- fix a bug whereby a{0,3} could match four a's
- input/output errors on closing files are now fatal instead of mere
warnings
- if POSIXLY_CORRECT is set in the environment, then sub and gsub use
POSIX rules for multiple backslashes
- it's no longer necessary to use the -y flag to bison
- backslash continuation inside strings removes the newline
- avoid any spurious errors left over from previous calls
For details, see FIXES, or commit history at
https://github.com/onetrueawk/awk/commits/master
Import awk-
20110810.
* /pat/, \n /pat/ {...} is now legal, though bad style to use.
* added checks to new -v code that permits -vnospace
* removed fixed limit on number of open files
* fixed day 1 bug that resurrected deleted elements of ARGV when
used as filenames (in lib.c).
* minor type fiddles to make gcc -Wall -pedantic happier (but not
totally so)
* split(s, a, //) now behaves the same as split(s, a, "")
* another fix to avoid core dump with delete(ARGV)
Import awk-
20110506.
* added #ifdef for isblank (allows -ffoo as well as -f foo arguments).
* fixed a subtle (and i hope low-probability) overflow error in
fldbld, by adding space for one extra \0.
* changed srand() to return the previous seed
Delete old versions of awk and unversion directory name.
Import latest awk sources.