| 1 |
Copyright (C) 2019, 2020, 2021, 2022, 2023, 2024, 2025 |
| 2 |
Free Software Foundation, Inc. |
| 3 |
|
| 4 |
Copying and distribution of this file, with or without modification, |
| 5 |
are permitted in any medium without royalty provided the copyright |
| 6 |
notice and this notice are preserved. |
| 7 |
|
| 8 |
Changes from 5.3.1 to 5.3.2 |
| 9 |
--------------------------- |
| 10 |
|
| 11 |
1. The pretty printer now produces fewer spurious newlines; at the |
| 12 |
outermost level it now adds newlines between block comments and |
| 13 |
the block or function that follows them. The extra final newline |
| 14 |
is no longer produced. |
| 15 |
|
| 16 |
2. OpenVMS 9.2-2 x86_64 is now supported. |
| 17 |
|
| 18 |
3. On Linux and macos systems, the -no-pie linker flag is no longer required. |
| 19 |
PMA now works on macos systems with Apple silicon, and not just |
| 20 |
Intel systems. |
| 21 |
|
| 22 |
4. Still more subtle issues related to uninitialized array elements have |
| 23 |
been fixed. |
| 24 |
|
| 25 |
5. Associative arrays should now not grow quite as fast as they used to. |
| 26 |
|
| 27 |
6. The code and documentation are now consistent with each other with |
| 28 |
respect to path searching and adding .awk to the filename. Both |
| 29 |
are always done, even with --posix and --traditional. |
| 30 |
|
| 31 |
7. As usual, there have been several minor code cleanups and bug fixes. |
| 32 |
See the ChangeLog for details. |
| 33 |
|
| 34 |
Changes from 5.3.0 to 5.3.1 |
| 35 |
--------------------------- |
| 36 |
|
| 37 |
1. More subtle issues related to uninitialized array elements have |
| 38 |
been fixed. |
| 39 |
|
| 40 |
2. A number of bugs in the debugger related to handling of arrays |
| 41 |
have been fixed. |
| 42 |
|
| 43 |
3. Some subtle bugs in the API have been fixed. |
| 44 |
|
| 45 |
4. Use of MPFR is now possible again on 32-bit Power PC Mac systems. |
| 46 |
|
| 47 |
5. Race conditions around broken pipes for system() and read and write |
| 48 |
pipes should now be closed off. |
| 49 |
|
| 50 |
6. Support for OSF/1 has been removed. |
| 51 |
|
| 52 |
7. The never-documented --nostalgia option has been removed. It was |
| 53 |
causing bug reports. |
| 54 |
|
| 55 |
8. The implementation of printf/sprintf has been thoroughly reworked |
| 56 |
in order to make the code more maintainable and to fix a goodly |
| 57 |
number of corner cases. |
| 58 |
|
| 59 |
9. As usual, there have been several minor code cleanups and bug fixes. |
| 60 |
See the ChangeLog for details. |
| 61 |
|
| 62 |
Changes from 5.2.x to 5.3.0 |
| 63 |
--------------------------- |
| 64 |
|
| 65 |
1. Infrastructure changes: Removed the use of libsigsegv. The |
| 66 |
value-add was never very much and it caused problems in some |
| 67 |
environments. |
| 68 |
|
| 69 |
2. In keeping with new features in BWK awk, gawk now has built-in |
| 70 |
CSV file parsing. The behavior is intended to be identical to |
| 71 |
that of the "One True AWK" when --csv is applied. See the |
| 72 |
manual for details. |
| 73 |
|
| 74 |
3. Also in keeping with BWK awk, gawk now supports a new \u escape |
| 75 |
sequence. This should be followed by 1-8 hexadecimal digits. The |
| 76 |
given code point is converted to its corresponding multibyte encoding |
| 77 |
for storage inside gawk. See the manual. |
| 78 |
|
| 79 |
4. If PROCINFO["BUFFERPIPE"] exists, then pipe output is buffered. |
| 80 |
You can also use PROCINFO["command", "BUFFERPIPE"]. See the manual |
| 81 |
for details. |
| 82 |
|
| 83 |
5. Because of the additional `do_csv' variable in the API, which breaks |
| 84 |
binary compatibility, the API major version was updated to 4 and |
| 85 |
the minor version was reset to zero. The API remains source code |
| 86 |
compatible; that is, existing extensions should only require recompilation. |
| 87 |
|
| 88 |
6. The manual now requires Texinfo 7.1 and its texinfo.tex for formatting. |
| 89 |
As a result, we no longer need to pre-process it, removing the need |
| 90 |
for gawktexi.in and leaving just gawk.texi. |
| 91 |
|
| 92 |
7. And of course, there have been several minor code cleanups and bug fixes. |
| 93 |
See the ChangeLog for details. |
| 94 |
|
| 95 |
Changes from 5.2.2 to 5.2.x |
| 96 |
--------------------------- |
| 97 |
|
| 98 |
1. The readdir extension has been updated with additonal code and |
| 99 |
features, see the manual or its man page. As a result, the |
| 100 |
readdir_test.c extension has been removed. |
| 101 |
|
| 102 |
2. We have a new translation: Ukrainian. |
| 103 |
|
| 104 |
3. Several subtle issues related to null regexp matches around |
| 105 |
multibyte characters have been fixed. |
| 106 |
|
| 107 |
Changes from 5.2.1 to 5.2.2 |
| 108 |
--------------------------- |
| 109 |
|
| 110 |
1. Infrastructure upgrades: makeinfo 7.0.1 must be used to format |
| 111 |
the manual. As a result, the manual can also now be formatted |
| 112 |
with LaTeX by running it through `makeinfo --latex'. |
| 113 |
|
| 114 |
2. Gawk no longer builds an x86_64 executable on M1 macOS systems. |
| 115 |
This means that PMA is unavailable on those systems. |
| 116 |
|
| 117 |
3. Gawk will now diagnose if a heap file was created with a different |
| 118 |
setting of -M/--bignum than in the current invocation and exit with |
| 119 |
a fatal message if so. |
| 120 |
|
| 121 |
4. Gawk no longer "leaks" its free list of NODEs in the heap file, resulting |
| 122 |
in much more efficient usage of persistent storage. |
| 123 |
|
| 124 |
5. PROCINFO["pma"] exists if the PMA allocator is compiled into gawk. |
| 125 |
Its value is the PMA version. |
| 126 |
|
| 127 |
6. The time extension is no longer deprecated. The strptime() function |
| 128 |
from gawkextlib's timex extension has been added to it. |
| 129 |
|
| 130 |
7. Better information is passed to input parsers for when they want to |
| 131 |
decide whether or not to take control of a file. In particular, the |
| 132 |
readdir extension is simplified for Windows because of this. |
| 133 |
|
| 134 |
8. The various PNG files are now installed for Info and HTML. The |
| 135 |
images files now have gawk_ prefixed names to avoid any conflicts |
| 136 |
with other installed PNG file names. |
| 137 |
|
| 138 |
9. As usual, there have been several minor code cleanups and bug fixes. |
| 139 |
See the ChangeLog for details. |
| 140 |
|
| 141 |
Changes from 5.2.0 to 5.2.1 |
| 142 |
--------------------------- |
| 143 |
|
| 144 |
1. Infrastructure upgrades: PMA version Avon 8. |
| 145 |
|
| 146 |
2. Issues related to the sign of NaN and Inf values on RiscV have |
| 147 |
been fixed; gawk now gives identical results on that platform as |
| 148 |
it does on others. |
| 149 |
|
| 150 |
3. A few issues with the debugger have been fixed. |
| 151 |
|
| 152 |
4. More subtle issues with untyped array elements being passed to |
| 153 |
functions have been fixed. |
| 154 |
|
| 155 |
5. The rwarray extension's readall() function has had some bugs fixed. |
| 156 |
|
| 157 |
6. The PMA allocator is now supported on FreeBSD, OpenBSD and Linux on S/390x. |
| 158 |
It is now supported also on both Intel and M1 macOS systems. |
| 159 |
|
| 160 |
7. There have been several minor code cleanups and bug fixes. See the |
| 161 |
ChangeLog for details. |
| 162 |
|
| 163 |
Changes from 5.1.x to 5.2.0 |
| 164 |
--------------------------- |
| 165 |
|
| 166 |
***************************************************************************** |
| 167 |
* MPFR mode (the -M option) is now ON PAROLE. This feature is now being * |
| 168 |
* supported by a volunteer in the development team and not by the primary * |
| 169 |
* maintainer. If this situation changes, then the feature will be removed. * |
| 170 |
* For more information see this section in the manual: * |
| 171 |
* https://www.gnu.org/software/gawk/manual/html_node/MPFR-On-Parole.html * |
| 172 |
***************************************************************************** |
| 173 |
|
| 174 |
1. Infrastructure upgrades: Libtool 2.4.7, Bison 3.8.2. |
| 175 |
|
| 176 |
2. Numeric scalars now compare in the same way as C for the relational |
| 177 |
operators. Comparison order for sorting has not changed. This only |
| 178 |
makes a difference when comparing Infinity and NaN values with |
| 179 |
regular numbers; it should not be noticeable most of the time. |
| 180 |
|
| 181 |
3. If the AWK_HASH environment variable is set to "fnv1a" gawk will |
| 182 |
use the FNV1-A hash function for associative arrays. |
| 183 |
|
| 184 |
4. The CMake infrastructure has been removed. In the five years it was in |
| 185 |
the tree, nobody used it, and it was not updated. |
| 186 |
|
| 187 |
5. There is now a new function, mkbool(), that creates Boolean-typed |
| 188 |
values. These values *are* numbers, but they are also tagged as |
| 189 |
Boolean. This is mainly for use with data exchange to/from languages |
| 190 |
or environments that support real Boolean values. See the manual |
| 191 |
for details. |
| 192 |
|
| 193 |
6. As BWK awk has supported interval expressions since 2019, they are |
| 194 |
now enabled even if --traditional is supplied. The -r/--re-interval option |
| 195 |
remains, but it does nothing. |
| 196 |
|
| 197 |
7. The rwarray extension has two new functions, writeall() and readall(), |
| 198 |
for saving / restoring all of gawk's variables and arrays. |
| 199 |
|
| 200 |
8. The new `gawkbug' script should be used for reporting bugs. |
| 201 |
|
| 202 |
9. The manual page (doc/gawk.1) has been considerably reduced in size. |
| 203 |
Wherever possible, details were replaced with references to the online |
| 204 |
copy of the manual. |
| 205 |
|
| 206 |
10. Gawk now supports Terence Kelly's "persistent malloc" (pma), |
| 207 |
allowing gawk to preserve its variables, arrays and user-defined |
| 208 |
functions between runs. THIS IS AN EXPERIMENTAL FEATURE! |
| 209 |
|
| 210 |
For more information, see the manual. A new pm-gawk.1 man page |
| 211 |
is included, as is a separate user manual that focuses on the feature. |
| 212 |
|
| 213 |
11. Support for OS/2 has been removed. It was not being actively |
| 214 |
maintained. |
| 215 |
|
| 216 |
12. Similarly, support for DJGPP has been removed. It also was not |
| 217 |
being actively maintained. |
| 218 |
|
| 219 |
13. VAX/VMS is no longer supported, as it can no longer be tested. |
| 220 |
The files for it remain in the distribution but will be removed |
| 221 |
eventually. |
| 222 |
|
| 223 |
14. Some subtle issues with untyped array elements being passed to |
| 224 |
functions have been fixed. |
| 225 |
|
| 226 |
15. Syntax errors are now immediately fatal. This prevents problems |
| 227 |
with errors from fuzzers and other such things. |
| 228 |
|
| 229 |
16. There have been numerous minor code cleanups and bug fixes. See the |
| 230 |
ChangeLog for details. |
| 231 |
|
| 232 |
Changes from 5.1.1 to 5.1.x |
| 233 |
--------------------------- |
| 234 |
|
| 235 |
1. Infrastructure upgrades: Automake 1.16.5, Texinfo 6.8. |
| 236 |
|
| 237 |
2. The rwarray extension now supports writing and reading GMP and |
| 238 |
MPFR values. As a result, a bug in the API code was fixed. |
| 239 |
|
| 240 |
Changes from 5.1.0 to 5.1.1 |
| 241 |
--------------------------- |
| 242 |
|
| 243 |
1. Infrastructure upgrades: Bison 3.8, Gettext 0.20.2, Automake 1.16.4, |
| 244 |
and (will wonders never cease) Autoconf 2.71. |
| 245 |
|
| 246 |
2. asort and asorti now allow FUNCTAB and SYMTAB as the first argument if a |
| 247 |
second destination array is supplied. Similarly, using either array as |
| 248 |
the second argument is now a fatal error. Additionally, using either |
| 249 |
array as the destination for split(), match(), etc. also causes a |
| 250 |
fatal error. |
| 251 |
|
| 252 |
3. The new -I/--trace option prints a trace of the byte codes as they |
| 253 |
are executed. |
| 254 |
|
| 255 |
4. A number of subtle bugs relating to MPFR mode that caused differences |
| 256 |
between regular operation and MPFR mode have been fixed. |
| 257 |
|
| 258 |
5. The API now handles MPFR/GMP values slightly differently, requiring |
| 259 |
different memory management for those values. See the manual for the |
| 260 |
details if you have an extension using those values. As a result, |
| 261 |
the minor version was incremented. |
| 262 |
|
| 263 |
6. $0 and the fields are now cleared before starting a BEGINFILE rule. |
| 264 |
|
| 265 |
7. The duplication of m4 and build-aux directories between the main |
| 266 |
directory and the extension directory has been removed. This |
| 267 |
simplifies the distribution. |
| 268 |
|
| 269 |
8. The test suite has been improved, making it easier to run the entire |
| 270 |
suite with -M. Use `GAWK_TEST_ARGS=-M make check' to do so. |
| 271 |
|
| 272 |
9. Profiling and pretty-printing output has been modified slightly so |
| 273 |
that functions are presented in a reasonable order with respect |
| 274 |
to the namespaces that contain them. |
| 275 |
|
| 276 |
10. Several example programs in the manual have been updated to their |
| 277 |
modern POSIX equivalents. |
| 278 |
|
| 279 |
11. A number of examples in doc/gawkinet.texi have been updated for |
| 280 |
current times. Thanks to Juergen Kahrs for the work. |
| 281 |
|
| 282 |
12. Handling of Infinity and NaN values has been improved. |
| 283 |
|
| 284 |
13. There has been a general tightening up of the use of const and |
| 285 |
of types. |
| 286 |
|
| 287 |
14. The "no effect" lint warnings have been fixed up and now behave |
| 288 |
more sanely. |
| 289 |
|
| 290 |
15. The manual has been updated with much more information about what is |
| 291 |
and is not a bug, and the changes in the gawk mailing lists. |
| 292 |
|
| 293 |
16. The behavior of strongly-typed regexp constants when passed as the |
| 294 |
third argument to sub() or gsub() has been clarified in the code and |
| 295 |
in the manual. |
| 296 |
|
| 297 |
17. Similar to item #4 above, division by zero is now fatal in MPFR |
| 298 |
mode, as it is in regular mode. |
| 299 |
|
| 300 |
18. There have been numerous minor code cleanups and bug fixes. See the |
| 301 |
ChangeLog for details. |
| 302 |
|
| 303 |
Changes from 5.0.1 to 5.1.0 |
| 304 |
--------------------------- |
| 305 |
|
| 306 |
1. The major version of the API is bumped to 3, something that should |
| 307 |
have happened at the 5.0.0 release but didn't. |
| 308 |
|
| 309 |
2. A number of memory leak issues have been fixed. |
| 310 |
|
| 311 |
3. Infrastructure upgrades: Bison 3.5.4, Texinfo 6.7, Gettext 0.20.1, |
| 312 |
Automake 1.16.2. |
| 313 |
|
| 314 |
4. The indexing in the manual has been thoroughly revised, in particular |
| 315 |
making use of the facilities in Texinfo 6.7. That version (or newer) |
| 316 |
must be used to format the manual. |
| 317 |
|
| 318 |
5. MSYS2 is now supported out-of-the-box by configure. |
| 319 |
|
| 320 |
6. Several bugs have been fixed. See the ChangeLog for details. |
| 321 |
|
| 322 |
Changes from 5.0.0 to 5.0.1 |
| 323 |
--------------------------- |
| 324 |
|
| 325 |
1. A number of ChangeLog.1 files that were left out of the distribution |
| 326 |
have been restored. |
| 327 |
|
| 328 |
2. Multiple syntax errors should no longer be able to cause a core dump. |
| 329 |
|
| 330 |
3. Sandbox mode now disallows assigning new filename values in ARGV that |
| 331 |
were not there when gawk was invoked. |
| 332 |
|
| 333 |
4. There are many small documentation improvements in the manual. |
| 334 |
|
| 335 |
5. The new argument "no-ext" to --lint disables ``XXX is a gawk extension'' |
| 336 |
lint warnings. |
| 337 |
|
| 338 |
6. Infrastructure upgrades: Bison 3.4. |
| 339 |
|
| 340 |
7. A number of bugs, some of them quite significant, have been fixed. |
| 341 |
See the ChangeLog for details. |
| 342 |
|
| 343 |
Changes from 4.2.1 to 5.0.0 |
| 344 |
--------------------------- |
| 345 |
|
| 346 |
1. Support for the POSIX standard %a and %A printf formats has been added. |
| 347 |
|
| 348 |
2. The test infrastructure has been greatly improved, simplifying the |
| 349 |
contents of test/Makefile.am and making it possible to generate |
| 350 |
pc/Makefile.tst from test/Makefile.in. |
| 351 |
|
| 352 |
3. The regex routines have been replaced with those from GNULIB, allowing |
| 353 |
me to stop carrying forward decades of changes against the original |
| 354 |
ones from GLIBC. |
| 355 |
|
| 356 |
4. Infrastructure upgrades: Bison 3.3, Automake 1.16.1, Gettext 0.19.8.1, |
| 357 |
makeinfo 6.5. |
| 358 |
|
| 359 |
5. The undocumented configure option and code that enabled the use of |
| 360 |
non-English "letters" in identifiers is now gone. |
| 361 |
|
| 362 |
6. The `--with-whiny-user-strftime' configuration option is now gone. |
| 363 |
|
| 364 |
7. The code now makes some stronger assumptions about a C99 environment. |
| 365 |
|
| 366 |
8. PROCINFO["platform"] yields a string indicating the platform for |
| 367 |
which gawk was compiled. |
| 368 |
|
| 369 |
9. Writing to elements of SYMTAB that are not variable names now |
| 370 |
causes a fatal error. THIS CHANGES BEHAVIOR. |
| 371 |
|
| 372 |
10. Comment handling in the pretty-printer has been reworked almost completely |
| 373 |
from scratch. As a result, comments in many corner cases that were |
| 374 |
previously lost are now included in the formatted output. |
| 375 |
|
| 376 |
11. Namespaces have been implemented! See the manual. One consequence of this |
| 377 |
is that files included with -i, read with -f, and command line program |
| 378 |
segments must all be self-contained syntactic units. E.g., you can no |
| 379 |
longer do something like this: |
| 380 |
|
| 381 |
gawk -e 'BEGIN {' -e 'print "hello" }' |
| 382 |
|
| 383 |
12. Gawk now uses the locale settings for ignoring case in single byte |
| 384 |
locales, instead of hardwiring in Latin-1. |
| 385 |
|
| 386 |
13. A number of bugs, some of them quite significant, have been fixed. |
| 387 |
See the ChangeLog for details. |