aboutsummaryrefslogtreecommitdiffstats
path: root/NEWS
blob: 5946cea61f8d24f19eef4df049f5f7924ea4dbd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
   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
---------------------------

1. 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.

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

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

4. 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.

5. 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.

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

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

8. 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.

Changes from 5.1.1 to 5.1.2
---------------------------

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.

Changes from 5.1.0 to 5.1.1
---------------------------

1. Infrastructure upgrades: Bison 3.8, Gettext 0.20.2, Automake 1.16.4,
   and (will wonders never cease) Autoconf 2.71.

2. asort and asorti now allow FUNCTAB and SYMTAB as the first argument if a
   second destination array is supplied. Similarly, using either array as
   the second argument is now a fatal error. Additionally, using either
   array as the destination for split(), match(), etc. also causes a
   fatal error.

3. The new -I/--trace option prints a trace of the byte codes as they
   are executed.

4. A number of subtle bugs relating to MPFR mode that caused differences
   between regular operation and MPFR mode have been fixed.

5. The API now handles MPFR/GMP values slightly differently, requiring
   different memory management for those values. See the manual for the
   details if you have an extension using those values.  As a result,
   the minor version was incremented.

6. $0 and the fields are now cleared before starting a BEGINFILE rule.

7. The duplication of m4 and build-aux directories between the main
   directory and the extension directory has been removed. This
   simplifies the distribution.

8. The test suite has been improved, making it easier to run the entire
   suite with -M. Use `GAWK_TEST_ARGS=-M make check' to do so.

9. Profiling and pretty-printing output has been modified slightly so
   that functions are presented in a reasonable order with respect
   to the namespaces that contain them.

10. Several example programs in the manual have been updated to their
    modern POSIX equivalents.

11. A number of examples in doc/gawkinet.texi have been updated for
    current times. Thanks to Juergen Kahrs for the work.

12. Handling of Infinity and NaN values has been improved.

13. There has been a general tightening up of the use of const and
    of types.

14. The "no effect" lint warnings have been fixed up and now behave
    more sanely.

15. The manual has been updated with much more information about what is
    and is not a bug, and the changes in the gawk mailing lists.

16. The behavior of strongly-typed regexp constants when passed as the
    third argument to sub() or gsub() has been clarified in the code and
    in the manual.

17. Similar to item #4 above, division by zero is now fatal in MPFR
    mode, as it is in regular mode.

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

Changes from 5.0.1 to 5.1.0
---------------------------

1. The major version of the API is bumped to 3, something that should
   have happened at the 5.0.0 release but didn't.

2. A number of memory leak issues have been fixed.

3. Infrastructure upgrades: Bison 3.5.4, Texinfo 6.7, Gettext 0.20.1,
   Automake 1.16.2.

4. The indexing in the manual has been thoroughly revised, in particular
   making use of the facilities in Texinfo 6.7.  That version (or newer)
   must be used to format the manual.

5. MSYS2 is now supported out-of-the-box by configure.

6. Several bugs have been fixed.  See the ChangeLog for details.

Changes from 5.0.0 to 5.0.1
---------------------------

1. A number of ChangeLog.1 files that were left out of the distribution
   have been restored.

2. Multiple syntax errors should no longer be able to cause a core dump.

3. Sandbox mode now disallows assigning new filename values in ARGV that
   were not there when gawk was invoked.

4. There are many small documentation improvements in the manual.

5. The new argument "no-ext" to --lint disables ``XXX is a gawk extension''
   lint warnings.

6. Infrastructure upgrades: Bison 3.4.

7. A number of bugs, some of them quite significant, have been fixed.
   See the ChangeLog for details.

Changes from 4.2.1 to 5.0.0
---------------------------

1. Support for the POSIX standard %a and %A printf formats has been added.

2. The test infrastructure has been greatly improved, simplifying the
   contents of test/Makefile.am and making it possible to generate
   pc/Makefile.tst from test/Makefile.in.

3. The regex routines have been replaced with those from GNULIB, allowing
   me to stop carrying forward decades of changes against the original
   ones from GLIBC.

4. Infrastructure upgrades: Bison 3.3, Automake 1.16.1, Gettext 0.19.8.1,
   makeinfo 6.5.

5. The undocumented configure option and code that enabled the use of
   non-English "letters" in identifiers is now gone.

6. The `--with-whiny-user-strftime' configuration option is now gone.

7. The code now makes some stronger assumptions about a C99 environment.

8. PROCINFO["platform"] yields a string indicating the platform for
   which gawk was compiled.

9. Writing to elements of SYMTAB that are not variable names now
   causes a fatal error. THIS CHANGES BEHAVIOR.

10. Comment handling in the pretty-printer has been reworked almost completely
    from scratch. As a result, comments in many corner cases that were
    previously lost are now included in the formatted output.

11. Namespaces have been implemented! See the manual.  One consequence of this
    is that files included with -i, read with -f, and command line program
    segments must all be self-contained syntactic units. E.g., you can no
    longer do something like this:

   	gawk -e 'BEGIN {' -e 'print "hello" }'

12. Gawk now uses the locale settings for ignoring case in single byte
    locales, instead of hardwiring in Latin-1.

13. A number of bugs, some of them quite significant, have been fixed.
    See the ChangeLog for details.