|
|
Log in / Subscribe / Register

Gawk 5.2.0 released

Version 5.2.0 of the GNU Awk implementation is out. The biggest change, perhaps, is the addition of "persistent memory" support that allows gawk to keep values around between runs. Old-timers will be disappointed by the removal of VAX/VMS support.


From:  Arnold Robbins <arnold-AT-skeeve.com>
To:  info-gnu-AT-gnu.org, help-gawk-AT-gnu.org, bug-gawk-AT-gnu.org
Subject:  Gawk 5.2.0 released!
Date:  Sun, 04 Sep 2022 21:18:53 +0300
Message-ID:  <E1oUuCr-000N0Z-Tc__42342.2636160225$1662319740$gmane$org@tanda>

Greetings all.

This note announces the next major release of GNU Awk: version 5.2.0.

The following files may be retrieved via HTTPS from
https://ftp.gnu.org/gnu/gawk:

-rw-rw-r-- 1 arnold arnold 6540181 Sep  4 18:52 gawk-5.2.0.tar.gz
-rw-rw-r-- 1 arnold arnold 3228577 Sep  4 18:52 gawk-5.2.0.tar.lz
-rw-rw-r-- 1 arnold arnold 3386344 Sep  4 18:52 gawk-5.2.0.tar.xz

This is a major new release.  The relevant part of the NEWS file
is appended below.

This release represents a lot of very hard work by a number of people.
I thank them all for their contributions, I could not have done it
by myself.

Differences from gawk 5.1.1 are not available; they would be too large.

The online documentation on the GNU web site is already updated,
including a manual for the new persistent memory feature.

The usual GNU build incantation should be used:

	tar -xpvzf gawk-5.2.0.tar.gz
	cd gawk-5.2.0
	./configure && make && make check

Please use the new buggawk script to report bugs. If it doesn't
work for you, then send email to bug-gawk@gnu.org.

NOTE that the manual's instructions for sending bug reports have
been updated. Please review them carefully before submitting a report!

ONLY bug reports should be submitted to the bug-gawk list. All other
questions should use the relatively new help-gawk@gnu.org mailing list.

Enjoy!

Arnold Robbins (on behalf of all the gawk developers)
arnold@skeeve.com
------------------------------------------------------------
   Copyright (C) 2019, 2020, 2021, 2022 Free Software Foundation, Inc.
   
   Copying and distribution of this file, with or without modification,
   are permitted in any medium without royalty provided the copyright
   notice and this notice are preserved.

Changes from 5.1.x to 5.2.0
---------------------------

*****************************************************************************
* MPFR mode (the -M option) is now ON PAROLE.  This feature is now being    *
* supported by a volunteer in the development team and not by the primary   *
* maintainer.  If this situation changes, then the feature will be removed. *
* For more information see this section in the manual:                      *
* https://www.gnu.org/software/gawk/manual/html_node/MPFR-O...    *
*****************************************************************************

1. Infrastructure upgrades: Libtool 2.4.7, Bison 3.8.2.

2. Numeric scalars now compare in the same way as C for the relational
   operators. Comparison order for sorting has not changed.  This only
   makes a difference when comparing Infinity and NaN values with
   regular numbers; it should not be noticeable most of the time.

3. If the AWK_HASH environment variable is set to "fnv1a" gawk will
   use the FNV1-A hash function for associative arrays.

4. The CMake infrastructure has been removed. In the five years it was in
   the tree, nobody used it, and it was not updated.

5. There is now a new function, mkbool(), that creates Boolean-typed
   values.  These values *are* numbers, but they are also tagged as
   Boolean. This is mainly for use with data exchange to/from languages
   or environments that support real Boolean values. See the manual
   for details.

6. As BWK awk has supported interval expressions since 2019, they are
   now enabled even if --traditional is supplied. The -r/--re-interval option
   remains, but it does nothing.

7. The rwarray extension has two new functions, writeall() and readall(),
   for saving / restoring all of gawk's variables and arrays.

8. The new `gawkbug' script should be used for reporting bugs.

9. The manual page (doc/gawk.1) has been considerably reduced in size.
   Wherever possible, details were replaced with references to the online
   copy of the manual.

10. Gawk now supports Terence Kelly's "persistent malloc" (pma),
    allowing gawk to preserve its variables, arrays and user-defined
    functions between runs. THIS IS AN EXPERIMENTAL FEATURE!
   
    For more information, see the manual. A new pm-gawk.1 man page
    is included, as is a separate user manual that focuses on the feature.

11. Support for OS/2 has been removed. It was not being actively
    maintained.

12. Similarly, support for DJGPP has been removed. It also was not
    being actively maintained.

13. VAX/VMS is no longer supported, as it can no longer be tested.
    The files for it remain in the distribution but will be removed
    eventually.

14. Some subtle issues with untyped array elements being passed to
    functions have been fixed.

15. Syntax errors are now immediately fatal. This prevents problems
    with errors from fuzzers and other such things.

16. There have been numerous minor code cleanups and bug fixes. See the
    ChangeLog for details.

Changes from 5.1.1 to 5.1.x
---------------------------

1. Infrastructure upgrades: Automake 1.16.5, Texinfo 6.8.

2. The rwarray extension now supports writing and reading GMP and
   MPFR values. As a result, a bug in the API code was fixed.


to post comments

Gawk 5.2.0 released

Posted Sep 6, 2022 9:43 UTC (Tue) by heftig (subscriber, #73632) [Link] (4 responses)

Beware, gawk 5.2.0 breaks the build of the kernel and some related tools, though an unreviewed patch is available.

https://lists.gnu.org/archive/html/bug-gawk/2022-09/msg00...
https://lists.gnu.org/archive/html/bug-gawk/2022-09/msg00...

Gawk 5.2.0 released

Posted Sep 6, 2022 16:02 UTC (Tue) by wtarreau (subscriber, #51152) [Link] (3 responses)

> Beware, gawk 5.2.0 breaks the build of the kernel and some related tools, though an unreviewed patch is available.

<sarcasm>Given the "g" in "gawk" stands or "GNU", breakage on minor upgrade was to be expected anyway, like with cousins gcc, make, binutils, autoconf, tar, emacs etc for which backward compatibility never seemed to be that much of a concern...Even bash used to break scripts a long time ago. glibc seems to be one of the exceptions there.</sarcasm>

Gawk 5.2.0 released

Posted Sep 6, 2022 21:53 UTC (Tue) by madscientist (subscriber, #16861) [Link]

Maybe they should just follow the new trend in release numbering and only ever change the major version of GNU tools, and never the minor version. I guess then people would be mollified.

However, the referenced issue is clearly just a bug, and not a behavior change. <sarcasm>I suppose the kernel developers are so disciplined that they never introduce new bugs in minor versions, and save them all up for major versions.</sarcasm>

Gawk 5.2.0 released

Posted Sep 7, 2022 10:08 UTC (Wed) by ianmcc (guest, #88379) [Link]

Why the snark? It looks like a genuine regression bug that was surely accidental -- well, unlikely someone would deliberately introduce a double free() and call it a "feature". Do you have any evidence that gawk deliberately broke backwards-compatibility?

Gawk 5.2.0 released

Posted Sep 8, 2022 0:11 UTC (Thu) by developer122 (guest, #152928) [Link]

>glibc seems to be one of the exceptions

a few weeks ago I'd have agreed XD

Gawk 5.2.0 released

Posted Sep 8, 2022 0:40 UTC (Thu) by milesrout (subscriber, #126894) [Link] (1 responses)

>The manual page (doc/gawk.1) has been considerably reduced in size.
Wherever possible, details were replaced with references to the online
copy of the manual.

Classic GNU...

Gawk 5.2.0 released

Posted Sep 8, 2022 1:45 UTC (Thu) by mirabilos (subscriber, #84359) [Link]

I’d consider this a bug. Not everyone is online, and the online version is probably not versioned and ages worse.

Gawk 5.2.0 released

Posted Sep 9, 2022 9:29 UTC (Fri) by jimbo (subscriber, #6689) [Link] (1 responses)

The link to the gawk directory under ftp.gnu.org is incorrect, as the URL is terminated by a colon, which causes Firefox and Chrome to fail to load the Suggest that link and surrounding text should revised, e.g.

The following files may be retrieved via HTTPS from 
https://ftp.gnu.org/gnu/gawk:

Gawk 5.2.0 released

Posted Sep 14, 2022 7:29 UTC (Wed) by coriordan (guest, #7544) [Link]

True. It's a plaintext email with no hyperlinks, but the LWN engine (and other software) automatically converts some text to links and this sometimes happens.

Gawk 5.2.0 released

Posted Sep 9, 2022 21:10 UTC (Fri) by jrwren (subscriber, #97799) [Link] (1 responses)

> 9. The manual page (doc/gawk.1) has been considerably reduced in size.
> Wherever possible, details were replaced with references to the online
> copy of the manual.

This will make my life worse when distros upgrade to this version. I guess I'll be removing gawk and installing mawk just to get a complete man page. :(

Gawk 5.2.0 released

Posted Sep 16, 2022 3:49 UTC (Fri) by scientes (guest, #83068) [Link]

Give that Debian has written and maintans many man pages in this sort of situation, they might opt to keep the old man page (esp. If you file a bug).

Beta release of gawk 5.2.1

Posted Nov 19, 2022 21:16 UTC (Sat) by xose (subscriber, #535) [Link]

FYI: https://lists.gnu.org/archive/html/bug-gawk/2022-11/msg00000.html


Copyright © 2022, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds