MAWK Changelog

What's new in MAWK 1.3.4-20131226

Dec 28, 2013
  • Add configure check to work around recent breakage in Cygwin's math.h which declares _LIB_VERSION without allowing it to be updated (report by Gert Hulselmans).
  • Minor updates to configure script, for clang and mingw
  • Update config.guess and config.sub

New in MAWK 1.3.4-20130803 (Aug 3, 2013)

  • minor updates to configure script
  • add limit-checks, improve index computation in scan.c to fix old 1.3.3 problems with very long string-literals in the parsed script (report by Marcin Krol).
  • update config.guess and config.sub

New in MAWK 1.3.4-20121209 (Dec 10, 2012)

  • build-fix for cygwin in matherr.c, which declares a different type for _LIB_VERSION
  • add missing "-f" option in examples/gdecl.awk
  • fix a regression in fflush, ensuring that it returns an error if the argument does not match any output filename (report by Nathan Weeks).
  • modify wording of configure --help message to make it clear that the default for --with-builtin-regex uses the builtin regular expression engine of mawk.
  • fix issues reported by Coverity scan. Most of these were minor, and were addressed by modifying the source to allow Coverity to improve its analysis of the code.
  • amend support for LC_NUMERIC by translating period to the local decimal separator as needed to work with strtod() which is used to validate decimal constants when scanning source files. This fixes an infinite loop with mawk 'BEGIN { print 1.0 }' (report by Jan Psota).
  • regenerate man/mawk.doc, overlooked in previous updates.

New in MAWK 1.3.4-20121129 (Dec 5, 2012)

  • change behavior if internal fflush call fails: rather than exiting with an error, propagate the return value to the script as -1, for consistency with gawk and BWK (discussion with Aharon Robbins and Nathan Weeks).
  • add special case for forward reference to a function using an array parameter, updating the function's parameter type so that the array is passed properly.
  • support length(array), as done in gawk and BWK awk.
  • support LC_NUMERIC, which will modify the displayed decimal point in some locales. It does not modify the decimal point used for input, matching the behavior of nawk and BWK awk (prompted by request from Yechiel Bardov for thousands-separator).
  • add configure option --enable-init-srand to allow choice whether to initialize random numbers automatically at startup or not. Not doing this makes programs more predictable (Debian #63843).
  • add configure option --enable-builtin-srand, use that to deprecate mawk's builtin srand/rand functions which generally are not as good as the system-provided functions.
  • extend --enable-trace configure option to show builtin functions.
  • add systime and mktime functions
  • when warning about unrecognized options, do not exit with error on these gawk options:
  • --lint
  • --lint-old
  • --posix
  • --re-interval
  • --traditional
  • integrate patch by Dominic Letz for strtime function.
  • correct logic for "/dev/stdin" special device (GenToo #424137).
  • updates for configure script macros: + modify configure script and makefile to support cross-compiles. + remove Turbo C++ and Zortech C++ makefiles. + remove obsolete function-checks: fmod, memcpy, strchr, strerror, strtod, vfprintf. + remove obsolete checks for some headers: math.h, stdarg.h, stdlib.h, string.h time.h + support --datarootdir option. + add 3rd parameter to AC_DEFINE's to allow autoheader to run. + remove unused macros.
  • update config.guess and config.sub
  • add icons for webpage artwork

New in MAWK 1.3.4-20120627 (Jun 28, 2012)

  • This version implements gawk's "nextfile" feature, adds "/dev/stdin" as an alias for stdin (already aliased to "-"), fixes an overflow check used to distinguish between large numbers and strings, improves debugging traces and memory-leak checking, and adds various other bugfixes and portability improvements.

New in MAWK 1.3.4-20100625 (Jun 26, 2010)

  • correct translation of octal and hex escapes for system regular expression library.
  • modify configure script to support --program-suffix, etc.
  • add Debian package scripts, for "mawk-cur".
  • add RPM spec-file.
  • move release- and patch-level values from version.c to patchlev.h to simplify packaging scripts.

New in MAWK 1.3.3-20090920 (Sep 21, 2009)

  • This release supports nulls in the field-separator pattern.
  • It improves the performance of associative arrays via a new hashing function.
  • It has other fixes/improvements.

New in MAWK 1.3.3-20090820 (Aug 21, 2009)

  • minor portability/standards fixes for examples/hical
  • add WHINY_USERS sorted-array feature, for compatibility with gawk (patch by Aharon Robbins).
  • correct lower-limit for d_to_U() function, which broke conversion of zero in "%x" format, added in fix for Debian #303825 (report by Masami Hiramatsu).
  • modify "%s" and "%c" formatting in printf/sprintf commands to ensure that "s" does not do zero-padding, for standards conformance (discussion with Aharon Robbins, Mike Brennan, prompted by Debian #339799).