git: vendor/AWK vendor/awk: upgrade from 20121220 to 20200612

Daniel Fojt deef at crater.dragonflybsd.org
Wed Jun 24 21:12:54 PDT 2020


commit 1d48fce09e070b7fb0180fe19e991a6b7edcd14c
Author: Daniel Fojt <df at neosystem.org>
Date:   Wed Jun 24 07:45:41 2020 +0200

    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

Summary of changes:
 contrib/awk/FIXES     | 302 ++++++++++++++++++--
 contrib/awk/README    |  94 -------
 contrib/awk/README.md | 108 ++++++++
 contrib/awk/awk.1     | 188 ++++++++-----
 contrib/awk/awk.h     |  58 ++--
 contrib/awk/awkgram.y |  34 ++-
 contrib/awk/b.c       | 668 ++++++++++++++++++++++++++++++++++----------
 contrib/awk/lex.c     |  98 ++++---
 contrib/awk/lib.c     | 245 ++++++++++------
 contrib/awk/main.c    | 166 +++++++----
 contrib/awk/maketab.c |  66 +++--
 contrib/awk/parse.c   |   4 +-
 contrib/awk/proto.h   |  37 ++-
 contrib/awk/run.c     | 751 +++++++++++++++++++++++++++++---------------------
 contrib/awk/tran.c    | 267 +++++++++++++++---
 15 files changed, 2153 insertions(+), 933 deletions(-)
 delete mode 100644 contrib/awk/README
 create mode 100644 contrib/awk/README.md

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1d48fce09e070b7fb0180fe19e991a6b7edcd14c


-- 
DragonFly BSD source repository


More information about the Commits mailing list