Blame NEWS.0

Packit 575503
   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
Packit 575503
   2005, 2006, 2007, 2009, 2010 Free Software Foundation, Inc.
Packit 575503
   
Packit 575503
   Copying and distribution of this file, with or without modification,
Packit 575503
   are permitted in any medium without royalty provided the copyright
Packit 575503
   notice and this notice are preserved.
Packit 575503
 
Packit 575503
Changes from 3.1.7 to 3.1.8
Packit 575503
---------------------------
Packit 575503
1. The zero flag no longer applies to %c and %s; apparently the standards
Packit 575503
   changed at some point.
Packit 575503
Packit 575503
2. Updated to latest infrastructure: Autoconf 2.65, Automake 1.11.1,
Packit 575503
   libtool 2.2.6b, Bison 2.4.2.
Packit 575503
Packit 575503
3. Failure to open a socket is no longer a fatal error.
Packit 575503
Packit 575503
4. dfa.h and dfa.c are now more-or-less in sync with GNU grep, for the first
Packit 575503
   time in many years.
Packit 575503
Packit 575503
5. Gawk no longer includes its own copy of libsigsegv but it will use it if
Packit 575503
   installed on the build system. The --disable-libsigsegv configure option
Packit 575503
   is now gone.
Packit 575503
Packit 575503
6. The ' flag (%'d) is now just ignored on systems that can't support it.
Packit 575503
Packit 575503
7. Lots of bug fixes, see the ChangeLog.
Packit 575503
Packit 575503
Changes from 3.1.6 to 3.1.7
Packit 575503
---------------------------
Packit 575503
1. Gawk now has support for z/OS (IBM S/390 architecture).
Packit 575503
Packit 575503
2. Gawk now handles multibyte strings better in [s]printf with field
Packit 575503
   widths and such.
Packit 575503
Packit 575503
3. Gawk now uses libsigsegv to print a message before core dumping. This
Packit 575503
   handles infinite recursion of an awk function a little better.
Packit 575503
   Use of the library can be disabled at configure time with the
Packit 575503
   --disable-libsigsegv option for unusual systems.
Packit 575503
Packit 575503
4. The handling of BINMODE is now somewhat more sane.
Packit 575503
Packit 575503
5. A getline from a directory is no longer fatal; instead it returns -1.
Packit 575503
Packit 575503
6. Per POSIX, special variable names (like FS) cannot be used as function
Packit 575503
   parameter names.
Packit 575503
Packit 575503
7. The new -O / --optimize option enables simple constant folding on
Packit 575503
   the parse tree during parsing.  We hope that with time the number
Packit 575503
   of optimizations will increase.
Packit 575503
Packit 575503
8. Updated to the latest autotools: Autoconf 2.63, Automake 1.11,
Packit 575503
   Libtool 2.2.6a, and Gettext 0.17. Also latest Bison: 2.4.1.
Packit 575503
Packit 575503
9. Some improvement in testing for isinf / isnan in builtin.c.
Packit 575503
Packit 575503
10. Improved the handling of `a = a b c' to be more general.
Packit 575503
Packit 575503
11. Locale handling for %'d should now work on certain non-Unix /
Packit 575503
    non-Linux systems.
Packit 575503
Packit 575503
12. Lots of bugs fixed, see the ChangeLog for the details.
Packit 575503
 
Packit 575503
Changes from 3.1.5 to 3.1.6
Packit 575503
---------------------------
Packit 575503
Packit 575503
1. `gawk 'program' /non/existant/file' no longer core dumps.
Packit 575503
Packit 575503
2. Too many people the world over have complained about gawk's use of the
Packit 575503
   locale's decimal point for parsing input data instead of the traditional
Packit 575503
   period.  So, even though gawk was being nicely standards-compliant, in
Packit 575503
   a Triumph For The Users, gawk now only uses the locale's decimal point
Packit 575503
   if --posix is supplied or if POSIXLY_CORRECT is set.  It is the sincere
Packit 575503
   hope that this change will eliminate this FAQ from being asked.
Packit 575503
Packit 575503
3. `gawk -v BINMODE=1 ...' works again.
Packit 575503
Packit 575503
4. Internal file names like `/dev/user' now work again. (Note that these
Packit 575503
   file names are obsolete and will go away eventually.)
Packit 575503
Packit 575503
5. Problems with wide strings in non "C" locales have been straightened
Packit 575503
   out everywhere.  (At least, we think so.)
Packit 575503
Packit 575503
6. Use of `ansi2knr' is no longer supported. Please use an ANSI C compiler.
Packit 575503
Packit 575503
7. Updated to Autoconf 2.61, Automake 1.10, and Gettext 0.16.1.
Packit 575503
Packit 575503
8. The getopt* and regex* files were synchronized with current GLIBC CVS.
Packit 575503
   See the ChangeLog for the versions and minor edits made.
Packit 575503
Packit 575503
9. There are additional --lint-old warnings.
Packit 575503
Packit 575503
10. Gawk now uses getaddrinfo(3) to look up names and IP addresses. This
Packit 575503
    allows the use of an IPv6 format address and paves the way for
Packit 575503
    eventual addition of `/inet6/...' and `/inet4/...' hostnames.
Packit 575503
Packit 575503
11. We believe gawk to now be valgrind clean. At least when run against
Packit 575503
    the test suite.
Packit 575503
Packit 575503
12. A number of issues dealing with the formatting and printing of very
Packit 575503
    large numbers in integer formats have been dealt with and fixed.
Packit 575503
Packit 575503
13. Gawk now converts "+inf", "-inf", "+nan" and "-nan" into the corresponding
Packit 575503
    magic IEEE floating point values. Only those strings (case independent)
Packit 575503
    work.  With --posix, gawk calls the system strtod directly. You asked
Packit 575503
    for it, you got it, you deal with it.
Packit 575503
Packit 575503
14. Defining YYDEBUG enables the -D command line option.
Packit 575503
Packit 575503
15. Gawk should now work out of the box on Tandem NSK/OSS systems.
Packit 575503
Packit 575503
16. Lint messages rationalized: many more of the messages are now printed
Packit 575503
    only once, instead of every time they are encountered.
Packit 575503
Packit 575503
17. The strftime() function now accepts an optional third argument, which
Packit 575503
    if non-zero or non-null, indicates that the time should be formatted
Packit 575503
    as UTC instead of as local time.
Packit 575503
Packit 575503
18. The precedence of concatenation and `| getline' (in something like
Packit 575503
    "echo " "date" | getline stuff) has been reverted to the earlier
Packit 575503
    behavior and now once again matches Unix awk.
Packit 575503
Packit 575503
19. New configure time flag --disable-directories-fatal which causes
Packit 575503
    gawk to silently skip directories on the command line.  This behavior
Packit 575503
    is also enabled for --traditional, since it's what Unix awk does.
Packit 575503
Packit 575503
20. A new option, --use-lc-numeric, forces use of the locale's decimal
Packit 575503
    point without the rest of the draconian restrictions imposed by
Packit 575503
    --posix. This softens somewhat the stance taken in item #2.
Packit 575503
Packit 575503
21. Everything relevant has been updated to the GPL 3.
Packit 575503
Packit 575503
22. Array growth should be faster now, at no cost in space.
Packit 575503
Packit 575503
23. Lots more tests.
Packit 575503
Packit 575503
24. One new translation.
Packit 575503
Packit 575503
25. Various bugs fixed, see the ChangeLog for details.
Packit 575503
Packit 575503
Changes from 3.1.4 to 3.1.5
Packit 575503
---------------------------
Packit 575503
Packit 575503
1. The random() suite has been updated to a current FreeBSD version, which
Packit 575503
   works on systems with > 32-bit ints.
Packit 575503
Packit 575503
2. A new option, `--exec' has been added. It's like -f but ends option
Packit 575503
   processing.  It also disables `x=y' variable assignments, but not -v.
Packit 575503
   It's needed mainly for CGI scripts, so that source code can't be
Packit 575503
   passed in as part of the URL.
Packit 575503
Packit 575503
3. dfa.[ch] have been synced with GNU grep development.  This also fixes
Packit 575503
   multiple regex matching problems in multibyte locales.
Packit 575503
Packit 575503
4. Updated to Automake 1.9.5.
Packit 575503
Packit 575503
5. Updated to Bison 2.0.
Packit 575503
Packit 575503
6. The getopt* and regex* files were synchronized with current GLIBC CVS.
Packit 575503
   See the ChangeLog for the versions and minor edits made.
Packit 575503
Packit 575503
7. `configure --disable-nls' now disables just gawk's own translations.
Packit 575503
   Gawk continues to work with the locale's numeric formatting.  This
Packit 575503
   includes a bug fix in handling the printf ' flag (e.g., %'d).
Packit 575503
Packit 575503
8. Gawk is now multibyte aware.  This means that index(), length(),
Packit 575503
   substr() and match() all work in terms of characters, not bytes.
Packit 575503
Packit 575503
9. Gawk is now smarter about parsing numeric constants in corner cases.
Packit 575503
Packit 575503
11. Not closing open redirections no longer causes gawk to exit non-zero.
Packit 575503
Packit 575503
10. The VMS port has been updated.
Packit 575503
Packit 575503
11. Changes from Andrew Schorr at the xmlgawk project to provide for
Packit 575503
    open hooks from extensions are now included.  This will let the
Packit 575503
    xmlgawk extension work in the standard gawk.
Packit 575503
Packit 575503
12. Updated to gettext 0.14.4. Gawk no longer includes its own copy
Packit 575503
    of the gettext `intl' library, following current GNU practice to
Packit 575503
    rely on there being an external version thereof.
Packit 575503
Packit 575503
13. A regexp of the form `//' will now generate a warning that it
Packit 575503
    is not a C++ comment from --lint (awk.y).
Packit 575503
Packit 575503
14. The ^ and ^= operators with an integer exponent now use Exponentiation
Packit 575503
    by Squaring. This simultaneously fixes a problem with ^= and a negative
Packit 575503
    integer exponent.
Packit 575503
Packit 575503
15. length(array) now returns the number of elements in the array.  This is
Packit 575503
    is a non-standard extension that will fail in POSIX mode.
Packit 575503
Packit 575503
16. Carriage return characters are now ignored in program source code.
Packit 575503
Packit 575503
17. Four new translations added.
Packit 575503
Packit 575503
18. Various minor bugs fixed. See the ChangeLog for the details.
Packit 575503
Packit 575503
Changes from 3.1.3 to 3.1.4
Packit 575503
---------------------------
Packit 575503
Packit 575503
1. Gawk now supports the POSIX %F format, falling back to %f if the local
Packit 575503
   system printf doesn't handle it.
Packit 575503
Packit 575503
2. Gawk now supports the ' flag in printf. E.g., %'d in a locale with thousands
Packit 575503
   separators includes the thousands separator in the value, e.g. 12,345.
Packit 575503
Packit 575503
   This has one problem; the ' flag is next to impossible to use on the
Packit 575503
   command line, without major quoting games.  Oh well, TANSTAAFL.
Packit 575503
Packit 575503
3. The dfa code has been reinstated; the performance degradation was
Packit 575503
   just too awful.  Sigh.  (For fun, use `export GAWK_NO_DFA=1' to
Packit 575503
   see the difference.)
Packit 575503
Packit 575503
4. The special case `x = x y' is now recognized in the grammar, and gawk
Packit 575503
   now uses `realloc' to append the new value to the end of the existing
Packit 575503
   one.  This can speed up the common case of appending onto a string.
Packit 575503
Packit 575503
5. The dfa code was upgraded with most of the fixes from grep 2.5.1, and
Packit 575503
   the regex code was upgraded with GLIBC as mid-January 2004.  The regex
Packit 575503
   code is faster than it was, but still not as fast as the dfa code, so
Packit 575503
   the dfa code stays in.  The getopt code was also synced to current GLIBC.
Packit 575503
Packit 575503
6. Support code upgraded to Automake 1.8.5, Autoconf 2.59, and gettext 0.14.1.
Packit 575503
Packit 575503
7. When --posix is in effect, sub/gsub now follow the 2001 POSIX behavior.
Packit 575503
   Yippee.  This is even documented in the manual.
Packit 575503
Packit 575503
8. Gawk will now recover children that have died (input pipelines, two-way
Packit 575503
   pipes), upon detecting EOF from them, thus avoiding filling
Packit 575503
   up the process table.  Open file descriptors are not recovered
Packit 575503
   (unfortunately), since that could break awk semantics.  See the
Packit 575503
   ChangeLog and the source code for the details.
Packit 575503
Packit 575503
9. Handling of numbers like `0,1' in non-American locales ought to
Packit 575503
   work correctly now.
Packit 575503
Packit 575503
10. IGNORECASE is now locale-aware for characters with values above 128.
Packit 575503
    The dfa matcher is now used for IGNORECASE matches too.
Packit 575503
Packit 575503
11. Dynamic function loading is better. The documentation has been improved
Packit 575503
    and some new APIs for use by dynamic functions have been added.
Packit 575503
Packit 575503
12. Gawk now has a fighting chance of working on older systems,
Packit 575503
    a la SunOS 4.1.x.
Packit 575503
Packit 575503
13. Issues with multibyte support on HP-UX are now resolved. `configure' now
Packit 575503
    disables such support there, since it's not up to what gawk needs.
Packit 575503
Packit 575503
14. There are now even more tests in the test suite.
Packit 575503
Packit 575503
15. Various bugs fixed; see ChangeLog for the details.
Packit 575503
Packit 575503
Changes from 3.1.2 to 3.1.3
Packit 575503
---------------------------
Packit 575503
Packit 575503
1. Gawk now follows POSIX in handling of local numeric formats for
Packit 575503
   input, output and number/string conversions.
Packit 575503
Packit 575503
2. Multibyte detection improved.  See README_d/README.multibyte for more
Packit 575503
   info about multibyte locales.
Packit 575503
Packit 575503
3. Handling of `close' made more POSIX-compliant for POSIXLY_CORRECT,
Packit 575503
   see the documentation.
Packit 575503
Packit 575503
4. The record reading code was redone, again.  This time it's much
Packit 575503
   better. Really!
Packit 575503
Packit 575503
5. For RS = "\n" and RS = "", gawk now only sets RT when it has changed.
Packit 575503
   This provides considerable performance improvement.
Packit 575503
Packit 575503
6. `match' now sets all the subscripts in the third argument array
Packit 575503
   correctly, even if not all subexpressions matched.
Packit 575503
Packit 575503
7. Updated to Automake 1.7.5.  configure.in renamed configure.ac.
Packit 575503
Packit 575503
8. C-style switch statements are available, but must be enabled at
Packit 575503
   compile time via `configure --enable-switch'.  For 3.2 they'll be
Packit 575503
   enabled by default. Thanks to Michael Benzinger for the initial
Packit 575503
   code.
Packit 575503
Packit 575503
9. %c now always prints no more than one character, whatever
Packit 575503
   precision is provided.
Packit 575503
Packit 575503
10. strtonum(<number>) now works again.
Packit 575503
Packit 575503
11. Gawk is now much better about scalar/array typing of global
Packit 575503
    uninitiailzed variables passed as parameters. Once the parameter
Packit 575503
    is then used one way or the other, the global var's type is
Packit 575503
    adjusted accordingly.  Thanks to Stepan Kasal for the original
Packit 575503
    (considerable) changes.
Packit 575503
Packit 575503
12. Dynamic function loading under Windows32 should now be possible. See
Packit 575503
    README_d/README.pcdynamic. Thanks to Patrick T.J. McPhee for the changes.
Packit 575503
Packit 575503
13. Updated to gettext 0.12.1.
Packit 575503
Packit 575503
14. Gawk now follows historical practice and POSIX for the return
Packit 575503
    value of `rand': It's now  0 <= N < 1.
Packit 575503
Packit 575503
Changes from 3.1.1 to 3.1.2
Packit 575503
---------------------------
Packit 575503
Packit 575503
1. Loops of the form:
Packit 575503
Packit 575503
	for (iggy in foo)
Packit 575503
		next
Packit 575503
Packit 575503
   no longer leak memory.
Packit 575503
Packit 575503
2. gawk -v FIELDWIDTHS="..." now sets PROCINFO["FS"] correctly.
Packit 575503
Packit 575503
3. All builtin operations and functions should now fully evaluate their
Packit 575503
   arguments so that side effects take place correctly.
Packit 575503
Packit 575503
4. Fixed a logic bug in gsub/gensub for matches to null strings that occurred
Packit 575503
   later in the string after a nonnull match.
Packit 575503
Packit 575503
5. getgroups code now works on Ultrix again.
Packit 575503
Packit 575503
6. Completely new version of the full GNU regex engine now in place.
Packit 575503
Packit 575503
7. Argument parsing and variable assignment has been cleaned up.
Packit 575503
Packit 575503
8. An I/O bug on HP-UX has been documented and worked around. See
Packit 575503
   README_d/README.hpux.
Packit 575503
Packit 575503
9. awklib/grcat should now compile correctly.
Packit 575503
Packit 575503
10. Updated to automake 1.7.3, autoconf 2.57 and gettext 0.11.5 ; thanks to
Packit 575503
    Paul Eggert for the initial automake and autoconf work.
Packit 575503
Packit 575503
11. As a result of #6, removed the use of the dfa code from GNU grep.
Packit 575503
Packit 575503
12. It is now possible to use ptys for |& two-way pipes instead of
Packit 575503
    pipes.  The basic plumbing for this was provided by Paolo Bonzini.
Packit 575503
    To make this happen:
Packit 575503
Packit 575503
    	command = "unix command etc"
Packit 575503
	PROCINFO[command, "pty"] = 1
Packit 575503
Packit 575503
	print ... |& command
Packit 575503
	command |& getline stuff
Packit 575503
Packit 575503
    In other words, set the element in PROCINFO *before* opening the
Packit 575503
    two-way pipe, and then gawk will use ptys instead of pipes.
Packit 575503
Packit 575503
    On systems without ptys or where all the ptys are in use, gawk
Packit 575503
    will fall back to using plain pipes.
Packit 575503
Packit 575503
13. Fixed a regex matching across buffer boundaries bug, with a
Packit 575503
    heuristic.  See io.c:rsre_get_a_record.
Packit 575503
Packit 575503
14. Profiling no longer dumps core if there are extension functions in place.
Packit 575503
Packit 575503
15. Grammar and scanner cleaned up, courtesy of Stepen Kasal, to hopefully
Packit 575503
    once and for all fix the `/=' operator vs. `/=.../' regex ambiguity.
Packit 575503
    Lots of other grammar simplifications applied, as well.
Packit 575503
Packit 575503
16. BINMODE should work now on more Windows ports.
Packit 575503
Packit 575503
17. Updated to bison 1.875.  Includes fix to bisonfix.sed script.
Packit 575503
Packit 575503
18. The NODE structure is now 20% (8 bytes) smaller (on x86, anyway), which
Packit 575503
    should help conserve memory.
Packit 575503
Packit 575503
19. Builds not in the source directory should work again.
Packit 575503
Packit 575503
20. Arrays now use 2 NODE's per element instead of three. Combined with
Packit 575503
    #18, (on the x86) this reduces the overhead from 120 bytes per element
Packit 575503
    to just 64 bytes: almost a 50% improvement.
Packit 575503
Packit 575503
21. Programs that make heavy use of changing IGNORECASE should now be
Packit 575503
    much faster, particularly if using a regular expression for FS or RS.
Packit 575503
    IGNORECASE now correctly affects RS regex record splitting, as well.
Packit 575503
Packit 575503
22. IGNORECASE no longer affects single-character field splitting (FS = "c"),
Packit 575503
    or single-character record splitting (RS = "c").
Packit 575503
Packit 575503
    This cleans up some weird behavior, and makes gawk better match the
Packit 575503
    documentation, which says it only affects regex-based field splitting
Packit 575503
    and record splitting.
Packit 575503
Packit 575503
    The documentation on this was improved, too.
Packit 575503
Packit 575503
23. The framework in test/ has been simplified, making it much easier to
Packit 575503
    add new tests while keeping the size of Makefile.am reasonable. Thanks
Packit 575503
    for this to Stepan Kasal.
Packit 575503
Packit 575503
24. --lint=invalid causes lint warnings only about stuff that's actually
Packit 575503
    invalid.  This needs additional work.
Packit 575503
Packit 575503
25. More translations.
Packit 575503
Packit 575503
26. The `get_a_record' routine has been revamped (currently by splitting it
Packit 575503
    into three variants).  This should improve long-term maintainability.
Packit 575503
Packit 575503
27. `match' now adds more entries to 3rd array arg:
Packit 575503
	match("the big dog", /([a-z]+) ([a-z]+) ([a-z]+)/, data)
Packit 575503
    fills in variables:
Packit 575503
    	data[1, "start"], data[1, "length"], and so on.
Packit 575503
Packit 575503
28. New `asorti' function with same interface as `asort', but sorts indices
Packit 575503
    instead of values.  
Packit 575503
Packit 575503
29. Documentation updated to FDL 1.2.
Packit 575503
Packit 575503
30. New `configure' option --disable-lint at compile time disables lint
Packit 575503
    checking.  With GCC dead-code-elimination, cuts almost 200K off the
Packit 575503
    executable size on GNU/Linux x86.  Presumably speeds up runtime.
Packit 575503
Packit 575503
    Using this will cause some of the tests in the test suite to fail.
Packit 575503
    This option may be removed at a later date.
Packit 575503
Packit 575503
31. Various minor cleanups, see the ChangeLog for details.
Packit 575503
Packit 575503
Changes from 3.1.0 to 3.1.1
Packit 575503
---------------------------
Packit 575503
Packit 575503
1. Six new translations.
Packit 575503
Packit 575503
2. Having more than 4 different values for OFMT and/or CONVFMT now works.
Packit 575503
Packit 575503
3. The handling of dynamic regexes is now more more sane, esp. w.r.t.
Packit 575503
   the profiling code.  The profiling code has been fixed in several
Packit 575503
   places.
Packit 575503
Packit 575503
4. The return value of index("", "") is now 1.
Packit 575503
Packit 575503
5. Gawk should no longer close fd 0 in child processes.
Packit 575503
Packit 575503
6. Fixed test for strtod semantics and regenerated configure.
Packit 575503
Packit 575503
7. Gawk can now be built with byacc; an accidental bison dependency was
Packit 575503
   removed.
Packit 575503
Packit 575503
8. `yyerror' will no longer dump core on long source lines.
Packit 575503
Packit 575503
9. Gawk now correctly queries getgroups(2) to figure out how many groups
Packit 575503
   the process has.
Packit 575503
Packit 575503
10. New configure option to force use of included strftime, e.g. on
Packit 575503
    Solaris systems. See `./configure --help' for the details. Replaced
Packit 575503
    the included strftime.c with the one from textutils.
Packit 575503
Packit 575503
11. OS/2 port has been updated.
Packit 575503
Packit 575503
12. Multi-byte character support has been added, courtesy of IBM Japan.
Packit 575503
Packit 575503
13. The `for (iggy in foo) delete foo[iggy]' -> `delete foo' optimisation
Packit 575503
    now works.
Packit 575503
Packit 575503
14. Upgraded to gettext 0.11.2 and automake 1.5.
Packit 575503
Packit 575503
15. Full gettext compatibility (new dcngettext function).
Packit 575503
Packit 575503
16. The O'Reilly copyedits and indexing changes for the documentation have
Packit 575503
    been folded into the texinfo version of the manuals.
Packit 575503
Packit 575503
17. A humongously long value for the AWKPATH environment variable will no
Packit 575503
    longer dump core.
Packit 575503
Packit 575503
18. Configuration / Installation issues have been straightened out in
Packit 575503
    Makefile.am.
Packit 575503
Packit 575503
Changes from 3.0.6 to 3.1.0
Packit 575503
---------------------------
Packit 575503
Packit 575503
1. A new PROCINFO array provides info about the process. The non-I/O /dev/xxx
Packit 575503
   files are now obsolete, and their use always generates a warning.
Packit 575503
Packit 575503
2. A new `mktime' builtin function was added for creating time stamps. The
Packit 575503
   `mktime' function written in awk was removed from the user's guide.
Packit 575503
Packit 575503
3. New `--gen-po' option creates GNU gettext .po files for strings marked
Packit 575503
   with a leading underscore.
Packit 575503
Packit 575503
4. Gawk now completely interprets special file names internally, ignoring the
Packit 575503
   existence of real /dev/stdin, /dev/stdout files, etc.
Packit 575503
Packit 575503
5. The mmap code was removed. It was a worthwhile experiment that just
Packit 575503
   didn't work out.
Packit 575503
Packit 575503
6. The BINMODE variable is new; on non-UNIX systems it affects how gawk
Packit 575503
   opens files for text vs. binary.
Packit 575503
Packit 575503
7. The atari port is now unsupported.
Packit 575503
Packit 575503
8. Gawk no longer supports `next file' as two words.
Packit 575503
Packit 575503
9. On systems that support it, gawk now sets the `close on exec' flag on all
Packit 575503
   files and pipes it opens. This makes sure that child processes run via
Packit 575503
   `system' or pipes have plenty of file descriptors available.
Packit 575503
Packit 575503
10. New ports: Tandem and BeOS.  The Tandem port is unsupported.
Packit 575503
Packit 575503
11. If `--posix' is in effect, newlines are not allowed after ?:.
Packit 575503
Packit 575503
12. Weird OFMT/CONVFMT formats no longer cause fatal errors.
Packit 575503
Packit 575503
13. Diagnostics about array parameters now include the parameter's name,
Packit 575503
    not just its number.
Packit 575503
Packit 575503
14. configure should now automatically add -D_SYSV3 for ISC Unix.
Packit 575503
    (This seems to have made it into the gawk 3.0.x line long ago.)
Packit 575503
Packit 575503
15. It is now possible to open a two-way pipe via the `|&' operator.
Packit 575503
    See the discussion in the manual about putting `sort' into such a pipeline,
Packit 575503
    though.  (NOTE!  This is borrowed from ksh: it is not the same as
Packit 575503
    the same operator in csh!)
Packit 575503
Packit 575503
16. The `close' function now takes an optional second string argument
Packit 575503
    that allows closing one or the other end of the two-way pipe to
Packit 575503
    a co-process.  This is needed to use `sort' in a co-process, see
Packit 575503
    the doc.
Packit 575503
Packit 575503
17. If TCP/IP is available, special file names beginning with `/inet'
Packit 575503
    can be used with `|&' for IPC. Thanks to Juergen Kahrs for the initial
Packit 575503
    code.
Packit 575503
Packit 575503
18. With `--enable-portals' on the configure command line, gawk will also
Packit 575503
    treat file names that start with `/p/' as a 4.4 BSD type portal file,
Packit 575503
    i.e., a two-way pipe for `|&'.
Packit 575503
Packit 575503
19. Unrecognized escapes, such as "\q" now always generate a warning.
Packit 575503
Packit 575503
20. The LINT variable is new; it provides dynamic control over the --lint
Packit 575503
    option.
Packit 575503
Packit 575503
21. Lint warnings can be made fatal by using --lint=fatal or `LINT = "fatal"'.
Packit 575503
    Use this if you're really serious about portable code.
Packit 575503
Packit 575503
22. Due to an enhanced sed script, there is no longer any need to worry
Packit 575503
    about finding or using alloca.  alloca.c is thus now gone.
Packit 575503
Packit 575503
23. A number of lint warnings have been added.  Most notably, gawk will
Packit 575503
    detect if a variable is used before assigned to.  Warnings for
Packit 575503
    when a string that isn't a number gets converted to a number are
Packit 575503
    in the code but disabled; they seem to be too picky in practice.
Packit 575503
Packit 575503
    Also, gawk will now warn about function parameter names that shadow
Packit 575503
    global variable names.
Packit 575503
Packit 575503
24. It is now possible to dynamically add builtin functions on systems
Packit 575503
    that support dlopen. This facility is not (yet) as portable or well
Packit 575503
    integrated as it might be.  *** WARNING *** THIS FEATURE WILL EVOLVE!
Packit 575503
Packit 575503
25. There are *many* new tests in the test suite.
Packit 575503
Packit 575503
26. Profiling has been added!  A separate version of gawk, named pgawk, is
Packit 575503
    built and generates a run-time execution profile.  The --profile option
Packit 575503
    can be used to change the default output file.   In regular gawk, this
Packit 575503
    option pretty-prints the parse tree.
Packit 575503
Packit 575503
27. Gawk has been internationalized, using GNU gettext.  Translations for
Packit 575503
    future distributions are most welcome.  Simultaneously, gawk was switched
Packit 575503
    over to using automake.  You need Automake 1.4a (from the CVS archive)
Packit 575503
    if you want to muck with the Makefile.am files.
Packit 575503
Packit 575503
28. New `asort' function for sorting arrays.  See the doc for details.
Packit 575503
Packit 575503
29. The match function takes an optional array third argument to hold
Packit 575503
    the text matched by parenthesized sub-expressions.
Packit 575503
Packit 575503
30. The bit op functions and octal and hex source code constants are on by
Packit 575503
    default, no longer a configure-time option.  Recognition of non-decimal
Packit 575503
    data is now enabled at runtime with --non-decimal-data command line option.
Packit 575503
Packit 575503
31. Internationalization features available at the awk level: new TEXTDOMAIN
Packit 575503
    variable and `bindtextdomain' and `dcgettext' functions. printf formats
Packit 575503
    may contain the "%2$3.5d" kind of notation for use in translations.  See
Packit 575503
    the texinfo manual for details.
Packit 575503
Packit 575503
32. The return value from `close' has been rationalized.  Most notably,
Packit 575503
    closing something that wasn't open returns -1 but remains non-fatal.
Packit 575503
Packit 575503
33. The array effeciency change from 3.0.5 was reverted; the semantics were
Packit 575503
    not right.  Additionally, index values of previously stored elements
Packit 575503
    can no longer change dynamically.
Packit 575503
Packit 575503
34. The new option --dump-variables dumps a list of all global variables and
Packit 575503
    their final types and values to a file you give, or to `awkvars.out'.
Packit 575503
Packit 575503
35. Gawk now uses a recent version of random.c courtesy of the FreeBSD
Packit 575503
    project.
Packit 575503
Packit 575503
36. The gawk source code now uses ANSI C function definitions (new style),
Packit 575503
    with ansi2knr to translate code for old compilers.
Packit 575503
Packit 575503
37. `for (iggy in foo)' loops should be more robust now in the face of
Packit 575503
    adding/deleting elements in the middle; they loop over just the elements
Packit 575503
    that are present in the array when the loop starts.
Packit 575503
Packit 575503
Changes from 3.0.5 to 3.0.6
Packit 575503
---------------------------
Packit 575503
Packit 575503
This is a bug fix release only, pending further development on 3.1.0.
Packit 575503
Packit 575503
Bugs fixed and changes made:
Packit 575503
Packit 575503
1. Subscripting an array with a variable that is just a number no
Packit 575503
   longer magically converts the variable into a string.
Packit 575503
Packit 575503
2. Similarly, running a `for (iggy in foo)' loop where `foo' is a
Packit 575503
   function parameter now works correctly.
Packit 575503
Packit 575503
3. Similarly, `i = ""; v[i] = a; if (i in v) ...' now works again.
Packit 575503
Packit 575503
4. Gawk now special cases `for (iggy in foo) delete foo[iggy]' and
Packit 575503
   treats it as the moral equivalent of `delete foo'.  This should be
Packit 575503
   a major efficiency win when portably deleting large arrays.
Packit 575503
Packit 575503
5. VMS port brought up to date.
Packit 575503
Packit 575503
Changes from 3.0.4 to 3.0.5
Packit 575503
---------------------------
Packit 575503
Packit 575503
This is a bug fix release only, pending further development on 3.1.0.
Packit 575503
Packit 575503
Bugs Fixed:
Packit 575503
Packit 575503
 1. `function foo(foo)' is now a fatal error.
Packit 575503
Packit 575503
 2. Array indexing is now much more efficient: where possible, only one
Packit 575503
    copy of an index string is kept, even if used in multiple arrays.
Packit 575503
Packit 575503
 3. Support was added for MacOS X and an `install-strip' target.
Packit 575503
Packit 575503
 4. [s]printf formatting for `0' flag and floating point formats now
Packit 575503
    works correctly.
Packit 575503
Packit 575503
 5. HP-UX large file support with GCC 2.95.1 now works.
Packit 575503
Packit 575503
 6. Arguments that contain `=' but that aren't syntactically valid are
Packit 575503
    now treated as filenames, instead of as fatal errors.
Packit 575503
Packit 575503
 7. `-v NF=foo' now works.
Packit 575503
Packit 575503
 8. Non-ascii alphanumeric characters are now treated as such in the
Packit 575503
    right locales by regex.c.  Similarly, a Latin-1 y-umlaut (decimal
Packit 575503
    value 255) in the program text no longer acts like EOF.
Packit 575503
Packit 575503
 9. Array indexes are always compared as strings; fixes an obscure bug
Packit 575503
    when user input gets used for the `x in array' test.
Packit 575503
Packit 575503
10. The usage message now points users to the documentation for how
Packit 575503
    to report bugs.
Packit 575503
Packit 575503
11. `/=' now works after an array.
Packit 575503
Packit 575503
12. `b += b += 1' now works correctly.
Packit 575503
Packit 575503
13. IGNORECASE changing with calls `match' now works better. (Fix for
Packit 575503
    semi-obscure bug.)
Packit 575503
Packit 575503
14. Multicharacter values for RS now generate a lint warning.
Packit 575503
Packit 575503
15. The gawk open file caching is now much more efficient.
Packit 575503
Packit 575503
16. Global arrays passed to functions are now managed better.  In particular,
Packit 575503
    test/arynocls.awk won't crash referencing freed memory.
Packit 575503
Packit 575503
17. In obscure cases, `getline var' can no longer clobber $0.
Packit 575503
Packit 575503
Changes from 3.0.3 to 3.0.4
Packit 575503
---------------------------
Packit 575503
Packit 575503
This is a bug fix release only, pending further development on 3.1.0.
Packit 575503
Packit 575503
Bugs Fixed:
Packit 575503
Packit 575503
 1. A memory leak when turning a function parameter into an array was
Packit 575503
    fixed.
Packit 575503
Packit 575503
 2. The non-decimal data option now works correctly.
Packit 575503
Packit 575503
 3. Using an empty pair of brackets as an array subscript no longer causes
Packit 575503
    a core dump during parsing.  In general, syntax errors should not
Packit 575503
    cause core dumps any more.
Packit 575503
 
Packit 575503
 4. Standard input is no longer closed if it provides program source,
Packit 575503
    avoiding strange I/O problems.
Packit 575503
Packit 575503
 5. Memory corruption during printing with `print' has been fixed.
Packit 575503
Packit 575503
 6. The gsub function now correctly counts the number of matches.
Packit 575503
Packit 575503
 7. A typo in doc/Makefile.in has been fixed, making installation work.
Packit 575503
Packit 575503
 8. Calling `next' or `nextfile' from a BEGIN or END rule is now fatal.
Packit 575503
Packit 575503
 9. Subtle problems in rebuilding $0 when fields were changed have been
Packit 575503
    fixed.
Packit 575503
Packit 575503
10. `FS = FS' now correctly turns off the use of FIELDWIDTHS.
Packit 575503
Packit 575503
11. Gawk now parses fields correctly when FS is a single character.
Packit 575503
Packit 575503
12. It is now possible for RS to be the NUL character ("\0").
Packit 575503
Packit 575503
13. Weird problems with number conversions on MIPS and other systems
Packit 575503
    have been fixed.
Packit 575503
Packit 575503
14. When parsing using FIELDWIDTHS is in effect, `split' with no third
Packit 575503
    argument will still use the value of FS.
Packit 575503
Packit 575503
15. Large File Support for Solaris, HP-UX, AIX, and IRIX is now enabled at
Packit 575503
    compile time, thanks to Paul Eggert.
Packit 575503
Packit 575503
16. Attempting to use the name of a function as a variable or array
Packit 575503
    from within the function is now caught as a fatal error, instead
Packit 575503
    of as a core dump.
Packit 575503
Packit 575503
17. A bug in parsing hex escapes was fixed.
Packit 575503
Packit 575503
18. A weird bug with concatenation where one expression has side effects
Packit 575503
    that changes another was fixed.
Packit 575503
Packit 575503
19. printf/sprintf now behave much better for uses of the '0' and '#' flags
Packit 575503
    and with precisions and field widths.
Packit 575503
Packit 575503
20. Further strangenesses with concatenation and multiple accesses of some
Packit 575503
    of the special variables was fixed.
Packit 575503
Packit 575503
21. The Atari port is marked as no longer supported.
Packit 575503
Packit 575503
22. Build problems on HP-UX have been fixed.
Packit 575503
Packit 575503
23. Minor fixes and additional explanations added to the documentation.
Packit 575503
Packit 575503
24. For RS = "", even a single leading newline is now correctly stripped.
Packit 575503
Packit 575503
25. Obscure parsing problems for regex constants like /=.../ fixed, so
Packit 575503
    that a regex constant is recognized, and not the /= operator.
Packit 575503
Packit 575503
26. Fixed a bug when closing a redirection that matched the current
Packit 575503
    or last FILENAME.
Packit 575503
Packit 575503
27. Build problems on AIX fixed.
Packit 575503
Packit 575503
Changes from 3.0.2 to 3.0.3
Packit 575503
---------------------------
Packit 575503
Packit 575503
The horrendous per-record memory leak introduced in 3.0.1 is gone, finally.
Packit 575503
Packit 575503
The `amiga' directory is now gone; Amiga support is now entirely handled
Packit 575503
by the POSIX support.
Packit 575503
Packit 575503
Windows32 support has been added in the `pc' directory. See `README_d/README.pc'
Packit 575503
for more info.
Packit 575503
Packit 575503
The mmap changes are disabled in io.c, and will be removed entirely
Packit 575503
in the next big release.  They were an interesting experiment that just
Packit 575503
really didn't work in practice.
Packit 575503
Packit 575503
A minor memory leak that occurred when using `next' from within a
Packit 575503
function has also been fixed.
Packit 575503
Packit 575503
Problems with I/O from sub-processes via a pipe are now gone.
Packit 575503
Packit 575503
Using "/dev/pid" and the other special /dev files no longer causes a core dump.
Packit 575503
Packit 575503
The files regex.h, regex.c, getopt.h, getopt.c, and getopt1.c have been
Packit 575503
merged with the versions in GNU libc. Thanks to Ulrich Drepper for his help.
Packit 575503
Packit 575503
Some new undocumented features have been added. Use the source, Luke!
Packit 575503
It is not clear yet whether these will ever be fully supported.
Packit 575503
Packit 575503
Array performance should be much better for very very large arrays. "Virtual
Packit 575503
memory required, real memory helpful."
Packit 575503
Packit 575503
builtin.c:do_substr rationalized, again.
Packit 575503
Packit 575503
The --re-interval option now works as advertised.
Packit 575503
Packit 575503
The license text on some of the missing/* files is now generic.
Packit 575503
Packit 575503
Lots more new test cases.
Packit 575503
Packit 575503
Lots of other small bugs fixed, see the ChangeLog files for details.
Packit 575503
Packit 575503
Changes from 3.0.1 to 3.0.2
Packit 575503
---------------------------
Packit 575503
Packit 575503
Gawk now uses autoconf 2.12.
Packit 575503
Packit 575503
strftime now behaves correctly if passed an empty format string or if
Packit 575503
the string formats to an empty result string.
Packit 575503
Packit 575503
Several minor compilation and installation problems have been fixed.
Packit 575503
Packit 575503
Minor page break issues in the user's guide have been fixed.
Packit 575503
Packit 575503
Lexical errors no longer repeat ad infinitum.
Packit 575503
Packit 575503
Changes from 3.0.0 to 3.0.1
Packit 575503
---------------------------
Packit 575503
Packit 575503
Troff source for a handy-dandy five color reference card is now provided.
Packit 575503
Thanks to SSC for their macros.
Packit 575503
Packit 575503
Gawk now behaves like Unix awk and mawk, in that newline acts as white
Packit 575503
space for separating fields and for `split', by default.  In posix mode,
Packit 575503
only space and tab separate fields. The documentation has been updated to
Packit 575503
reflect this.
Packit 575503
Packit 575503
Tons and tons of small bugs fixed and new tests added, see the ChangeLogs.
Packit 575503
Packit 575503
Lots fewer compile time warnings from gcc -Wall. Remaining ones aren't
Packit 575503
worth fixing.
Packit 575503
Packit 575503
Gawk now pays some attention to the locale settings.
Packit 575503
Packit 575503
Fixes to gsub to catch several corner cases.
Packit 575503
Packit 575503
The `print' statement now evaluates all expressions first, and then
Packit 575503
prints them. This leads to less suprising behaviour if any expression has
Packit 575503
output side effects.
Packit 575503
Packit 575503
Miscellanious improvements in regex.h and regex.c.
Packit 575503
Packit 575503
Gawk will now install itself as gawk-M.N.P in $(bindir), and link
Packit 575503
`gawk' to it. This makes it easy to have multiple versions of gawk
Packit 575503
simultaneously. It will also now install itself as `awk' in $(bindir)
Packit 575503
if there is no `awk' there. This is in addition to installing itself as
Packit 575503
`gawk'. This change benefits the Hurd, and possibly other systems.  One
Packit 575503
day, gawk will drop the `g', but not yet.
Packit 575503
Packit 575503
`--posix' turns on interval expressions. Gawk now matches its documentation.
Packit 575503
Packit 575503
`close(FILENAME)' now does something meaningful.
Packit 575503
Packit 575503
Field management code in field.c majorly overhauled, several times.
Packit 575503
Packit 575503
The gensub code has been fixed, several bugs are now gone.
Packit 575503
Packit 575503
Gawk will use mmap for data file input if it is available.
Packit 575503
Packit 575503
The printf/sprintf code has been improved.
Packit 575503
Packit 575503
Minor issues in Makefile setup worked on and improved.
Packit 575503
Packit 575503
builtin.c:do_substr rationalized.
Packit 575503
Packit 575503
Regex matching fixed so that /+[0-9]/ now matches the leading +.
Packit 575503
Packit 575503
For building on vms, the default compiler is now DEC C rather than VAX C.
Packit 575503
Packit 575503
Changes from 2.15.6 to 3.0.0
Packit 575503
----------------------------
Packit 575503
Packit 575503
Fixed spelling of `Programming' in the copyright notice in all the files.
Packit 575503
Packit 575503
New --re-interval option to turn on interval expressions. They're off
Packit 575503
by default, except for --posix, to avoid breaking old programs.
Packit 575503
Packit 575503
Passing regexp constants as parameters to user defined functions now
Packit 575503
generates a lint warning.
Packit 575503
Packit 575503
Several obscure regexp bugs fixed; alas, a small number remain.
Packit 575503
Packit 575503
The manual has been thoroughly revised. It's now almost 50% bigger than
Packit 575503
it used to be.
Packit 575503
Packit 575503
The `+' modifier in printf is now reset correctly for each item.
Packit 575503
Packit 575503
The do_unix variable is now named do_traditional.
Packit 575503
Packit 575503
Handling of \ in sub and gsub rationalized (somewhat, see the manual for
Packit 575503
the gory [and I do mean gory] details).
Packit 575503
Packit 575503
IGNORECASE now uses ISO 8859-1 Latin-1 instead of straight ASCII. See the
Packit 575503
source for how to revert to pure ASCII.
Packit 575503
Packit 575503
--lint will now warn if an assignment occurs in a conditional context.
Packit 575503
This may become obnoxious enough to need turning off in the future, but
Packit 575503
"it seemed like a good idea at the time."
Packit 575503
Packit 575503
%hf and %Lf are now diagnosed as invalid in printf, just like %lf.
Packit 575503
Packit 575503
Gawk no longer incorrectly closes stdin in child processes used in
Packit 575503
input pipelines.
Packit 575503
Packit 575503
For integer formats, gawk now correctly treats the precision as the
Packit 575503
number of digits to print, not the number of characters.
Packit 575503
Packit 575503
gawk is now much better at catching the use of scalar values when
Packit 575503
arrays are needed, both in function calls and the `x in y' constructs.
Packit 575503
Packit 575503
New gensub function added. See the manual.
Packit 575503
Packit 575503
If do_tradtional is true, octal and hex escapes in regexp constants are
Packit 575503
treated literally.  This matches historical behavior.
Packit 575503
Packit 575503
yylex/nextc fixed so that even null characters can be included
Packit 575503
in the source code.
Packit 575503
Packit 575503
do_format now handles cases where a format specifier doesn't end in
Packit 575503
a control letter. --lint reports an error.
Packit 575503
Packit 575503
strftime() now uses a default time format equivalent to that of the
Packit 575503
Unix date command, thus it can be called with no arguments.
Packit 575503
Packit 575503
Gawk now catches functions that are used but not defined at parse time
Packit 575503
instead of at run time. (This is a lint error, making it fatal could break
Packit 575503
old code.)
Packit 575503
Packit 575503
Arrays that max out are now handled correctly.
Packit 575503
Packit 575503
Integer formats outside the range of an unsigned long are now detected
Packit 575503
correctly using the SunOS 4.x cc compiler.
Packit 575503
Packit 575503
--traditional option added as new preferred name for --compat, in keeping
Packit 575503
with GCC.
Packit 575503
Packit 575503
--lint-old option added, so that warnings about things not in old awk
Packit 575503
are only given if explicitly asked for.
Packit 575503
Packit 575503
`next file' has changed to one word, `nextfile'. `next file' is still
Packit 575503
accepted but generates a lint warning. `next file' will go away eventually.
Packit 575503
Packit 575503
Gawk with --lint will now notice empty source files and empty data files.
Packit 575503
Packit 575503
Amiga support using the Unix emulation added. Thanks to fnf@ninemoons.com.
Packit 575503
Packit 575503
test/Makefile is now "parallel-make safe".
Packit 575503
Packit 575503
Gawk now uses POSIX regexps + GNU regex ops by default. --posix goes to
Packit 575503
pure posix regexps, and --compat goes to traditional Unix regexps. However,
Packit 575503
interval expressions, even though specified by POSIX, are turned off by
Packit 575503
default, to avoid breaking old code.
Packit 575503
Packit 575503
IGNORECASE now applies to string comparison as well as regexp operations.
Packit 575503
Packit 575503
The AT&T Bell Labs Research awk fflush builtin function is now supported.
Packit 575503
fflush is extended to flush stdout if no arg and everything if given
Packit 575503
the null string as an argument.
Packit 575503
Packit 575503
If RS is more than one character, it is treated as a regular expression
Packit 575503
and records are delimited accordingly.  The variable RT is set to the record
Packit 575503
terminator string. This is disabled in compatibility mode.
Packit 575503
Packit 575503
If FS is set to the null string (or the third arg. of split() is the null
Packit 575503
string), splitting is done at every single character. This is disabled in
Packit 575503
compatibility mode.
Packit 575503
Packit 575503
Gawk now uses the Autoconf generated configure script, doing away with all
Packit 575503
the config/* files and the machinery that went with them.  The Makefile.in
Packit 575503
has also changed accordingly, complete with all the standard GNU Makefile
Packit 575503
targets.  (Non-unix systems may still have their own config.h and Makefile;
Packit 575503
see the appropriate README_d/README.* and/or subdirectory.)
Packit 575503
Packit 575503
The source code has been cleaned up somewhat and the formatting improved.
Packit 575503
Packit 575503
Changes from 2.15.5 to 2.15.6
Packit 575503
-----------------------------
Packit 575503
Packit 575503
Copyrights updated on all changed files.
Packit 575503
Packit 575503
test directory enhanced with four new tests.
Packit 575503
Packit 575503
Gawk now generates a warning for \x without following hexadecimal digits.
Packit 575503
In this case, it returns 'x', not \0.
Packit 575503
Packit 575503
Several fixes in main.c related to variable initialization:
Packit 575503
	CONVFMT has a default value
Packit 575503
	resetup is called before initializing variables
Packit 575503
	the varinit table fixed up a bit (see the comments)
Packit 575503
Packit 575503
gawk.1 updated with new BUG REPORTS section.
Packit 575503
Packit 575503
A plain `print' inside a BEGIN or END now generates a lint warning (awk.y).
Packit 575503
Packit 575503
Small fix in iop.c:get_a_record to avoid reading uninitialized memory.
Packit 575503
Packit 575503
awk.y:yylex now does a better job of handling things if the source file
Packit 575503
does not end in a newline. Probably there is more work to be done.
Packit 575503
Packit 575503
Memory leaks fixed in awk.y, particularly in cases of duplicate function
Packit 575503
parameters. Also, calling a function doesn't leak memory during parsing.
Packit 575503
Packit 575503
Empty function bodies are now allowed (awk.y).
Packit 575503
Packit 575503
Gawk now detects duplicate parameter names in functions (awk.y).
Packit 575503
Packit 575503
New function `error' in msg.c added for use from awk.y.
Packit 575503
Packit 575503
eval.c:r_get_lhs now checks if its argument is a parameter on the stack,
Packit 575503
and pulls down the real variable. This catches more 'using an array as
Packit 575503
a scalar' kinds of errors.
Packit 575503
Packit 575503
main.c recovers C alloca space after parsing, this is important for
Packit 575503
bison-based parsers. re.c recovers C alloca space after doing an research.
Packit 575503
[Changes from Pat Rankin]
Packit 575503
Packit 575503
builtin.c now declares the random() related functions based on
Packit 575503
RANDOM_MISSING from config.h. [Suggested by Pat Rankin]
Packit 575503
Packit 575503
awk.h now handles alloca correctly for HP-UX. [Kaveh Ghazi]
Packit 575503
Packit 575503
regex.h and config/cray60 updated for Unicos 8.0. [Hal Peterson]
Packit 575503
Packit 575503
Fixed re.c and dfa.c so that gawk no longer leaks memory when using
Packit 575503
lots of dynamic regexps.
Packit 575503
Packit 575503
Removed dependency on signed chars from `idx' variable in awk.h. Gawk
Packit 575503
now passes its test suite if compiled with `gcc -fno-signed-char'.
Packit 575503
Packit 575503
Fixed warning on close in io.c to go under lint control. Too many people
Packit 575503
have complained about the spurious message, particularly when closing a
Packit 575503
child pipeline early.
Packit 575503
Packit 575503
Gawk now correctly handles RS = "" when input is from a terminal
Packit 575503
(iop.c:get_a_record).
Packit 575503
Packit 575503
Config file added for GNU.
Packit 575503
Packit 575503
gawk 'BEGIN { exit 1 } ; END { exit }' now exits 1, as it should
Packit 575503
(eval.c:interpret).
Packit 575503
Packit 575503
sub and gsub now follow posix, \ escapes both & and \. Each \ must
Packit 575503
be doubled initially in the program to get it into the string.
Packit 575503
Thanks to Mike Brennan for pointing this out (builtin.c:sub_common).
Packit 575503
Packit 575503
If FS is "", gawk behaves like mawk and nawk, making the whole record be $1.
Packit 575503
Yet Another Dark Corner. Sigh (field.c:def_parse_field).
Packit 575503
Packit 575503
Gawk now correctly recomputes string values for numbers if CONVFMT has
Packit 575503
changed (awk.h:force_string, node.c:r_force_string).
Packit 575503
Packit 575503
A regexp of the form `/* this looks like a comment but is not */' will
Packit 575503
now generate a warning from --lint (awk.y).
Packit 575503
Packit 575503
Gawk will no longer core dump if given an empty input file (awk.y:get_src_buf,
Packit 575503
iop.c:optimal_bufsize).
Packit 575503
Packit 575503
A printf format of the form %lf is handled correctly. The `l' generates
Packit 575503
a lint warning (builtin.c:format_tree) [Thanks to Mark Moraes].
Packit 575503
Packit 575503
Lynxos config file added.
Packit 575503
Packit 575503
`continue' outside a loop treated as `next' only in compatibility mode,
Packit 575503
instead of by default; recent att nawk chokes on this now.  `break'
Packit 575503
outside a loop now treated as `next' in compatibility mode (eval.c).
Packit 575503
Packit 575503
Bug fix in string concatenation, an arbitrary number of expressions
Packit 575503
are allowed (eval.c).
Packit 575503
Packit 575503
$1 += $2 now works correctly (eval.c).
Packit 575503
Packit 575503
Changing IGNORECASE no longer resets field-splitting to FS if it was
Packit 575503
using FIELDWIDTHS (eval.c, field.c).
Packit 575503
Packit 575503
Major enhancement: $0 and NF for last record read are now preserved
Packit 575503
into the END rule (io.c).
Packit 575503
Packit 575503
Regexp fixes:
Packit 575503
	/./ now matches a newline (regex.h)
Packit 575503
	^ and $ match beginning and end of string only, not any embedded
Packit 575503
		newlines (re.c)
Packit 575503
	regex.c should compile and work ok on 64-bit mips/sgi machines
Packit 575503
Packit 575503
Changes from 2.15.4 to 2.15.5
Packit 575503
-----------------------------
Packit 575503
Packit 575503
FUTURES file updated and re-arranged some with more rational schedule.
Packit 575503
Packit 575503
Many prototypes handled better for ANSI C in protos.h.
Packit 575503
Packit 575503
getopt.c updated somewhat.
Packit 575503
Packit 575503
test/Makefile now removes junk directory, `bardargtest' renamed `badargs.'
Packit 575503
Packit 575503
Bug fix in iop.c for RS = "". Eat trailing newlines off of record separator.
Packit 575503
Packit 575503
Bug fix in Makefile.bsd44, use leading tab in actions.
Packit 575503
Packit 575503
Fix in field.c:set_FS for FS == "\\" and IGNORECASE != 0.
Packit 575503
Packit 575503
Config files updated or added:
Packit 575503
	cray60, DEC OSF/1 2.0, Utek, sgi405, next21, next30, atari/config.h,
Packit 575503
	sco.
Packit 575503
Packit 575503
Fix in io.c for ENFILE as well as EMFILE, update decl of groupset to
Packit 575503
include OSF/1.
Packit 575503
Packit 575503
Rationalized printing as integers if numbers are outside the range of a long.
Packit 575503
Changes to node.c:force_string and builtin.c.
Packit 575503
Packit 575503
Made internal NF, NR, and FNR variables longs instead of ints.
Packit 575503
Packit 575503
Add LIMITS_H_MISSING stuff to config.in and awk.h, and default defs for
Packit 575503
INT_MAX and LONG_MAX, if no limits.h file. Add a standard decl of
Packit 575503
the time() function for __STDC__. From ghazi@noc.rutgers.edu.
Packit 575503
Packit 575503
Fix tree_eval in awk.h and r_tree_eval in eval.c to deal better with
Packit 575503
function parameters, particularly ones that are arrays.
Packit 575503
Packit 575503
Fix eval.c to print out array names of arrays used in scalar contexts.
Packit 575503
Packit 575503
Fix eval.c in interpret to zero out source and sourceline initially. This
Packit 575503
does a better job of providing source file and line number information.
Packit 575503
Packit 575503
Fix to re_parse_field in field.c to not use isspace when RS = "", but rather
Packit 575503
to explicitly look for blank and tab.
Packit 575503
Packit 575503
Fix to sc_parse_field in field.c to catch the case of the FS character at the
Packit 575503
end of a record.
Packit 575503
Packit 575503
Lots of miscellanious bug fixes for memory leaks, courtesy Mark Moraes,
Packit 575503
also fixes for arrays.
Packit 575503
Packit 575503
io.c fixed to warn about lack of explicit closes if --lint.
Packit 575503
Packit 575503
Updated missing/strftime.c to match posted strftime 6.2.
Packit 575503
Packit 575503
Bug fix in builtin.c, in case of non-match in sub_common.
Packit 575503
Packit 575503
Updated constant used for division in builtin.c:do_rand for DEC Alpha
Packit 575503
and CRAY Y-MP.
Packit 575503
Packit 575503
POSIXLY_CORRECT in the environment turns on --posix (fixed in main.c).
Packit 575503
Packit 575503
Updated srandom prototype and calls in builtin.c.
Packit 575503
Packit 575503
Fix awk.y to enforce posix semantics of unary +: result is numeric.
Packit 575503
Packit 575503
Fix array.c to not rearrange the hash chain upon finding an index in
Packit 575503
the array.  This messed things up in cases like:
Packit 575503
	for (index1 in array) {
Packit 575503
		blah
Packit 575503
		if (index2 in array)	# blew away the for
Packit 575503
			stuff
Packit 575503
	}
Packit 575503
Packit 575503
Fixed spelling errors in the man page.
Packit 575503
Packit 575503
Fixes in awk.y so that
Packit 575503
	gawk '' /path/to/file
Packit 575503
will work without core dumping or finding parse errors.
Packit 575503
Packit 575503
Fix main.c so that --lint will fuss about an empty program.
Packit 575503
Yet another fix for argument parsing in the case of unrecognized options.
Packit 575503
Packit 575503
Bug fix in dfa.c to not attempt to free null pointers.
Packit 575503
Packit 575503
Bug fix in builtin.c to only use DEFAULT_G_PRECISION for %g or %G.
Packit 575503
Packit 575503
Bug fix in field.c to achieve call by value semantics for split.
Packit 575503
Packit 575503
Changes from 2.15.3 to 2.15.4
Packit 575503
-----------------------------
Packit 575503
Packit 575503
Lots of lint fixes, and do_sprintf made mostly ANSI C compatible.
Packit 575503
Packit 575503
Man page updated and edited.
Packit 575503
Packit 575503
Copyrights updated.
Packit 575503
Packit 575503
Arrays now grow dynamically, initially scaling up by an order of magnitude
Packit 575503
  and then doubling, up to ~ 64K.  This should keep gawk's performance
Packit 575503
  graceful under heavy load.
Packit 575503
Packit 575503
New `delete array' feature added.  Only documented in the man page.
Packit 575503
Packit 575503
Switched to dfa and regex suites from grep-2.0. These offer the ability to
Packit 575503
  move to POSIX regexps in the next release.
Packit 575503
Packit 575503
Disabled GNU regex ops.
Packit 575503
Packit 575503
Research awk -m option now recognized. It does nothing in gawk, since gawk
Packit 575503
  has no static limits.  Only documented in the man page.
Packit 575503
Packit 575503
New bionic (faster, better, stronger than before) hashing function.
Packit 575503
Packit 575503
Bug fix in argument handling. `gawk -X' now notices there was no program.
Packit 575503
  Additional bug fixes to make --compat and --lint work again.
Packit 575503
Packit 575503
Many changes for systems where sizeof(int) != sizeof(void *).
Packit 575503
Packit 575503
Add explicit alloca(0) in io.c to recover space from C alloca.
Packit 575503
Packit 575503
Fixed file descriptor leak in io.c.
Packit 575503
Packit 575503
The --version option now follows the GNU coding standards and exits.
Packit 575503
Packit 575503
Fixed several prototypes in protos.h.
Packit 575503
Packit 575503
Several tests updated. On Solaris, warn that the out? tests will fail.
Packit 575503
Packit 575503
Configuration files for SunOS with cc and Solaris 2.x added.
Packit 575503
Packit 575503
Improved error messages in awk.y on gawk extensions if do_unix or do_compat.
Packit 575503
Packit 575503
INSTALL file added.
Packit 575503
Packit 575503
Fixed Atari Makefile and several VMS specific changes.
Packit 575503
Packit 575503
Better conversion of numbers to strings on systems with broken sprintfs.
Packit 575503
Packit 575503
Changes from 2.15.2 to 2.15.3
Packit 575503
-----------------------------
Packit 575503
Packit 575503
Increased HASHSIZE to a decent number, 127 was way too small.
Packit 575503
Packit 575503
FILENAME is now the null string in a BEGIN rule.
Packit 575503
Packit 575503
Argument processing fixed for invalid options and missing arguments.
Packit 575503
Packit 575503
This version will build on VMS.  This included a fix to close all files
Packit 575503
   and pipes opened with redirections before closing stdout and stderr.
Packit 575503
Packit 575503
More getpgrp() defines.
Packit 575503
Packit 575503
Changes for BSD44:  <sys/param.h> in io.c and Makefile.bsd44.
Packit 575503
Packit 575503
All directories in the distribution are now writable.
Packit 575503
Packit 575503
Separated LDFLAGS and CFLAGS in Makefile.  CFLAGS can now be overridden by
Packit 575503
  user.
Packit 575503
Packit 575503
Make dist now builds compressed archives ending in .gz and runs doschk.
Packit 575503
Packit 575503
Amiga port.
Packit 575503
Packit 575503
New getopt.c fixes Alpha OSF/1 problem.
Packit 575503
Packit 575503
Make clean now removes possible test output.
Packit 575503
Packit 575503
Improved algorithm for multiple adjacent string concatenations leads to
Packit 575503
  performance improvements.
Packit 575503
Packit 575503
Fix nasty bug whereby command-line assignments, both with -v and at run time,
Packit 575503
   could create variables with syntactically illegal names.
Packit 575503
Packit 575503
Fix obscure bug in printf with %0 flag and filling.
Packit 575503
Packit 575503
Add a lint check for substr if provided length exceeds remaining characters
Packit 575503
   in string.
Packit 575503
Packit 575503
Update atari support.
Packit 575503
Packit 575503
PC support enhanced to include support for both DOS and OS/2. (Lots more
Packit 575503
   #ifdefs. Sigh.)
Packit 575503
Packit 575503
Config files for Hitachi Unix and OSF/1, courtesy of Yoko Morishita
Packit 575503
   (morisita@sra.co.jp)
Packit 575503
Packit 575503
Changes from 2.15.1 to 2.15.2
Packit 575503
-----------------------------
Packit 575503
Packit 575503
Additions to the FUTURES file.
Packit 575503
Packit 575503
Document undefined order of output when using both standard output
Packit 575503
  and /dev/stdout or any of the /dev output files that gawk emulates in
Packit 575503
  the absence of OS support.
Packit 575503
Packit 575503
Clean up the distribution generation in Makefile.in:  the info files are
Packit 575503
  now included, the distributed files are marked read-only and patched
Packit 575503
  distributions are now unpacked in a directory named with the patch level.
Packit 575503
Packit 575503
Changes from 2.15 to 2.15.1
Packit 575503
---------------------------
Packit 575503
Packit 575503
Close stdout and stderr before all redirections on program exit.  This allows
Packit 575503
  detection of write errors and also fixes the messages test on Solaris 2.x.
Packit 575503
Packit 575503
Removed YYMAXDEPTH define in awk.y which was limiting the parser stack depth.
Packit 575503
Packit 575503
Changes to config/bsd44, Makefile.bsd44 and configure to bring it into line
Packit 575503
  with the BSD4.4 release.
Packit 575503
Packit 575503
Changed Makefile to use prefix, exec_prefix, bindir etc.
Packit 575503
Packit 575503
make install now installs info files.
Packit 575503
Packit 575503
make install now sets permissions on installed files.
Packit 575503
Packit 575503
Make targets added:  uninstall, distclean, mostlyclean and realclean.
Packit 575503
Packit 575503
Added config.h to cleaner and clobber make targets.
Packit 575503
Packit 575503
Changes to config/{hpux8x,sysv3,sysv4,ultrix41} to deal with alloca().
Packit 575503
Packit 575503
Change to getopt.h for portability.
Packit 575503
Packit 575503
Added more special cases to the getpgrp() call.
Packit 575503
Packit 575503
Added README.ibmrt-aos and config/ibmrt-aos.
Packit 575503
Packit 575503
Changes from 2.14 to 2.15
Packit 575503
---------------------------
Packit 575503
Packit 575503
Command-line source can now be mixed with library functions.
Packit 575503
Packit 575503
ARGIND variable tracks index in ARGV of FILENAME.
Packit 575503
Packit 575503
GNU style long options in addition to short options.
Packit 575503
Packit 575503
Plan 9 style special files interpreted by gawk:
Packit 575503
        /dev/pid
Packit 575503
        /dev/ppid
Packit 575503
        /dev/pgrpid
Packit 575503
        /dev/user
Packit 575503
                $1 = getuid
Packit 575503
                $2 = geteuid
Packit 575503
                $3 = getgid
Packit 575503
                $4 = getegid
Packit 575503
                $5 ... $NF = getgroups if supported
Packit 575503
Packit 575503
ERRNO variable contains error string if getline or close fails.
Packit 575503
Packit 575503
Very old options -a and -e have gone away.
Packit 575503
Packit 575503
Inftest has been removed from the default target in test/Makefile -- the
Packit 575503
  results were too machine specific and resulted in too many false alarms.
Packit 575503
Packit 575503
A README.amiga has been added.
Packit 575503
Packit 575503
The "too many arguments supplied for format string" warning message is only
Packit 575503
  in effect under the lint option.
Packit 575503
Packit 575503
Code improvements in dfa.c.
Packit 575503
Packit 575503
Fixed all reported bugs:
Packit 575503
Packit 575503
	Writes are checked for failure (such as full filesystem).
Packit 575503
Packit 575503
	Stopped (at least some) runaway error messages.
Packit 575503
Packit 575503
	gsub(/^/, "x") does the right thing for $0 of 0, 1, or more length.
Packit 575503
Packit 575503
	close() on a command being piped to a getline now works properly.
Packit 575503
Packit 575503
	The input record will no longer be freed upon an explicit close()
Packit 575503
	of the input file.
Packit 575503
Packit 575503
	A NUL character in FS now works.
Packit 575503
Packit 575503
	In a substitute, \\& now means a literal backslash followed by what
Packit 575503
	was matched.
Packit 575503
Packit 575503
	Integer overflow of substring length in substr() is caught.
Packit 575503
Packit 575503
	An input record without a newline termination is handled properly.
Packit 575503
Packit 575503
	In io.c, check is against only EMFILE so that system file table
Packit 575503
	  is not filled.
Packit 575503
Packit 575503
	Renamed all files with names longer than 14 characters.
Packit 575503
Packit 575503
	Escaped characters in regular expressions were being lost when 
Packit 575503
	  IGNORECASE was used.
Packit 575503
Packit 575503
	Long source lines were not being handled properly.
Packit 575503
Packit 575503
	Sourcefiles that ended in a tab but no newline were bombing.
Packit 575503
Packit 575503
	Patterns that could match zero characters in split() were not working
Packit 575503
	  properly.
Packit 575503
Packit 575503
	The parsedebug option was not working.
Packit 575503
Packit 575503
	The grammar was being a bit too lenient, allowing some very dubious
Packit 575503
	  programs to pass.
Packit 575503
Packit 575503
	Compilation with DEBUG defined now works.
Packit 575503
Packit 575503
	A variable read in with getline was not being treated as a potential
Packit 575503
	  number.
Packit 575503
Packit 575503
	Array subscripts were not always of string type.
Packit 575503
Packit 575503
Packit 575503
Changes from 2.13.2 to 2.14
Packit 575503
---------------------------
Packit 575503
Packit 575503
Updated manual!
Packit 575503
Packit 575503
Added "next file" to skip efficiently to the next input file.
Packit 575503
Packit 575503
Fixed potential of overflowing buffer in do_sprintf().
Packit 575503
Packit 575503
Plugged small memory leak in sub_common().
Packit 575503
Packit 575503
EOF on a redirect is now "sticky" -- it can only be cleared by close()ing
Packit 575503
  the pipe or file.
Packit 575503
Packit 575503
Now works if used via a #! /bin/gawk line at the top of an executable file
Packit 575503
  when that line ends with whitespace.
Packit 575503
Packit 575503
Added some checks to the grammar to catch redefinition of builtin functions.
Packit 575503
  This could eventually be the basis for an extension to allow redefining
Packit 575503
  functions, but in the mean time it's a good error catching facility.
Packit 575503
Packit 575503
Negative integer exponents now work.
Packit 575503
Packit 575503
Modified do_system() to make sure it had a non-null string to be passed
Packit 575503
  to system(3). Thus, system("") will flush any pending output but not go
Packit 575503
  through the overhead of forking an un-needed shell.
Packit 575503
Packit 575503
A fix to floating point comparisons so that NaNs compare right on IEEE systems.
Packit 575503
Packit 575503
Added code to make sure we're not opening directories for reading and such.
Packit 575503
Packit 575503
Added code to do better diagnoses of weird or null file names.
Packit 575503
Packit 575503
Allow continue outside of a loop, unless in strict posix mode.  Lint option
Packit 575503
  will issue warning.
Packit 575503
Packit 575503
New missing/strftime.c.  There has been one change that affects gawk.  Posix
Packit 575503
  now defines a %V conversion so the vms conversion has been changed to %v.
Packit 575503
  If this version is used with gawk -Wlint and they use %V in a call to
Packit 575503
  strftime, they'll get a warning.
Packit 575503
Packit 575503
Error messages now conform to GNU standard (I hope).
Packit 575503
Packit 575503
Changed comparisons to conform to the  description found in the file POSIX.
Packit 575503
  This is inconsistent with the current POSIX draft, but that is broken.
Packit 575503
  Hopefully the final POSIX standard will conform to this version.
Packit 575503
  (Alas, this will have to wait for 1003.2b, which will be a revision to
Packit 575503
  the 1003.2 standard.  That standard has been frozen with the broken
Packit 575503
  comparison rules.)
Packit 575503
Packit 575503
The length of a string was a short and now is a size_t.
Packit 575503
Packit 575503
Updated VMS help.
Packit 575503
Packit 575503
Added quite a few new tests to the test suite and deleted many due to lack of
Packit 575503
  written releases.  Test output is only removed if it is identical to the
Packit 575503
  "good" output.
Packit 575503
Packit 575503
Fixed a couple of bugs for reference to $0 when $0 is "" -- particularly in
Packit 575503
  a BEGIN block.
Packit 575503
Packit 575503
Fixed premature freeing in construct "$0 = $0".
Packit 575503
Packit 575503
Removed the call to wait_any() in gawk_popen(), since on at least some systems,
Packit 575503
  if gawk's input was from a pipe, the predecessor process in the pipe was a
Packit 575503
  child of gawk and this caused a deadlock.
Packit 575503
Packit 575503
Regexp can (once again) match a newline, if given explicitly.
Packit 575503
Packit 575503
nextopen() makes sure file name is null terminated.
Packit 575503
Packit 575503
Fixed VMS pipe simulation.  Improved VMS I/O performance.
Packit 575503
Packit 575503
Catch . used in variable names.
Packit 575503
Packit 575503
Fixed bug in getline without redirect from a file -- it was quitting after the
Packit 575503
  first EOF, rather than trying the next file.
Packit 575503
Packit 575503
Fixed bug in treatment of backslash at the end of a string -- it was bombing
Packit 575503
  rather than doing something sensible.  It is not clear what this should mean,
Packit 575503
  but for now I issue a warning and take it as a literal backslash.
Packit 575503
Packit 575503
Moved setting of regexp syntax to before the option parsing in main(), to
Packit 575503
  handle things like -v FS='[.,;]'
Packit 575503
Packit 575503
Fixed bug when NF is set by user -- fields_arr must be expanded if necessary
Packit 575503
  and "new" fields must be initialized.
Packit 575503
Packit 575503
Fixed several bugs in [g]sub() for no match found or the match is 0-length.
Packit 575503
Packit 575503
Fixed bug where in gsub() a pattern anchored at the beginning would still
Packit 575503
  substitute throughout the string.
Packit 575503
Packit 575503
make test does not assume that . is in PATH.
Packit 575503
Packit 575503
Fixed bug when a field beyond the end of the record was requested after
Packit 575503
  $0 was altered (directly or indirectly).
Packit 575503
Packit 575503
Fixed bug for assignment to field beyond end of record -- the assigned value
Packit 575503
  was not found on subsequent reference to that field.
Packit 575503
Packit 575503
Fixed bug for FS a regexp and it matches at the end of a record.
Packit 575503
Packit 575503
Fixed memory leak for an array local to a function.
Packit 575503
Packit 575503
Fixed hanging of pipe redirection to getline
Packit 575503
Packit 575503
Fixed coredump on access to $0 inside BEGIN block.
Packit 575503
Packit 575503
Fixed treatment of RS = "".  It now parses the fields correctly and strips
Packit 575503
  leading whitespace from a record if FS is a space.
Packit 575503
Packit 575503
Fixed faking of /dev/stdin.
Packit 575503
Packit 575503
Fixed problem with x += x
Packit 575503
Packit 575503
Use of scalar as array and vice versa is now detected.
Packit 575503
Packit 575503
IGNORECASE now obeyed for FS (even if FS is a single alphabetic character).
Packit 575503
Packit 575503
Switch to GPL version 2.
Packit 575503
Packit 575503
Renamed awk.tab.c to awktab.c for MSDOS and VMS tar programs.
Packit 575503
Packit 575503
Renamed this file (CHANGES) to NEWS.
Packit 575503
Packit 575503
Use fmod() instead of modf() and provide FMOD_MISSING #define to undo
Packit 575503
  this change.
Packit 575503
Packit 575503
Correct the volatile declarations in eval.c.
Packit 575503
Packit 575503
Avoid errant closing of the file descriptors for stdin, stdout and stderr.
Packit 575503
Packit 575503
Be more flexible about where semi-colons can occur in programs.
Packit 575503
Packit 575503
Check for write errors on all output, not just on close().
Packit 575503
Packit 575503
Eliminate the need for missing/{strtol.c,vprintf.c}.
Packit 575503
Packit 575503
Use GNU getopt and eliminate missing/getopt.c.
Packit 575503
Packit 575503
More "lint" checking.
Packit 575503
Packit 575503
Packit 575503
Changes from 2.13.1 to 2.13.2
Packit 575503
-----------------------------
Packit 575503
Packit 575503
Toward conformity with GNU standards, configure is a link to mkconf, the latter
Packit 575503
  to disappear in the next major release.
Packit 575503
Packit 575503
Update to config/bsd43.
Packit 575503
Packit 575503
Added config/apollo, config/msc60, config/cray2-50, config/interactive2.2
Packit 575503
Packit 575503
sgi33.cc added for compilation using cc rather than gcc.
Packit 575503
Packit 575503
Ultrix41 now propagates to config.h properly -- as part of a general
Packit 575503
  mechanism in configure for kludges -- #define anything from a config file
Packit 575503
  just gets tacked onto the end of config.h -- to be used sparingly.
Packit 575503
Packit 575503
Got rid of an unnecessary and troublesome declaration of vprintf().
Packit 575503
Packit 575503
Small improvement in locality of error messages.
Packit 575503
Packit 575503
Try to diagnose use of array as scalar and vice versa -- to be improved in
Packit 575503
  the future.
Packit 575503
Packit 575503
Fix for last bug fix for Cray division code--sigh.
Packit 575503
Packit 575503
More changes to test suite to explicitly use sh.  Also get rid of 
Packit 575503
  a few generated files.
Packit 575503
Packit 575503
Fixed off-by-one bug in string concatenation code.
Packit 575503
Packit 575503
Fix for use of array that is passed in from a previous function parameter.
Packit 575503
  Addition to test suite for above.
Packit 575503
Packit 575503
A number of changes associated with changing NF and access to fields
Packit 575503
  beyond the end of the current record.
Packit 575503
Packit 575503
Change to missing/memcmp.c to avoid seg. fault on zero length input.
Packit 575503
Packit 575503
Updates to test suite (including some inadvertently left out of the last patch)
Packit 575503
  to invoke sh explicitly (rather than rely on #!/bin/sh) and remove some
Packit 575503
  junk files.  test/chem/good updated to correspond to bug fixes.
Packit 575503
Packit 575503
Changes from 2.13.0 to 2.13.1
Packit 575503
-----------------------------
Packit 575503
Packit 575503
More configs and PORTS.
Packit 575503
Packit 575503
Fixed bug wherein a simple division produced an erroneous FPE, caused by
Packit 575503
  the Cray division workaround -- that code is now #ifdef'd only for
Packit 575503
  Cray *and* fixed.
Packit 575503
Packit 575503
Fixed bug in modulus implementation -- it was very close to the above
Packit 575503
  code, so I noticed it.
Packit 575503
Packit 575503
Fixed portability problem with limits.h in missing.c
Packit 575503
Packit 575503
Fixed portability problem with tzname and daylight -- define TZNAME_MISSING
Packit 575503
  if strftime() is missing and tzname is also.
Packit 575503
Packit 575503
Better support for Latin-1 character set.
Packit 575503
Packit 575503
Fixed portability problem in test Makefile.
Packit 575503
Packit 575503
Updated PROBLEMS file.
Packit 575503
Packit 575503
=============================== gawk-2.13 released =========================
Packit 575503
Changes from 2.12.42 to 2.12.43
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Typo in awk.y
Packit 575503
Packit 575503
Fixed up strftime.3 and added doc. for %V.
Packit 575503
Packit 575503
Changes from 2.12.41 to 2.12.42
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Fixed bug in devopen() -- if you had write permission in /dev,
Packit 575503
  it would just create /dev/stdout etc.!!
Packit 575503
Packit 575503
Final (?) VMS update.
Packit 575503
Packit 575503
Make NeXT use GFMT_WORKAROUND
Packit 575503
Packit 575503
Fixed bug in sub_common() for substitute on zero-length match.  Improved the
Packit 575503
  code a bit while I was at it.
Packit 575503
Packit 575503
Fixed grammar so that $i++ parses as ($i)++
Packit 575503
Packit 575503
Put support/* back in the distribution (didn't I already do this?!)
Packit 575503
Packit 575503
Changes from 2.12.40 to 2.12.41
Packit 575503
-------------------------------
Packit 575503
Packit 575503
VMS workaround for broken %g format.
Packit 575503
Packit 575503
Changes from 2.12.39 to 2.12.40
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Minor man page update.
Packit 575503
Packit 575503
Fixed latent bug in redirect().
Packit 575503
Packit 575503
Changes from 2.12.38 to 2.12.39
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Updates to test suite -- remove dependence on changing gawk.1 man page.
Packit 575503
Packit 575503
Changes from 2.12.37 to 2.12.38
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Fixed bug in use of *= without whitespace following.
Packit 575503
Packit 575503
VMS update.
Packit 575503
Packit 575503
Updates to man page.
Packit 575503
Packit 575503
Option handling updates in main.c
Packit 575503
Packit 575503
test/manyfiles redone and added to bigtest.
Packit 575503
Packit 575503
Fixed latent (on Sun) bug in handling of save_fs.
Packit 575503
Packit 575503
Changes from 2.12.36 to 2.12.37
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Update REL in Makefile-dist.  Incorporate test suite into main distribution.
Packit 575503
Packit 575503
Minor fix in regtest.
Packit 575503
Packit 575503
Changes from 2.12.35 to 2.12.36
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Release takes on dual personality -- 2.12.36 and 2.13.0 -- any further
Packit 575503
  patches before public release won't count for 2.13, although they will for
Packit 575503
  2.12 -- be careful to avoid confusion!  patchlevel.h will be the last thing
Packit 575503
  to change.
Packit 575503
Packit 575503
Cray updates to deal with arithmetic problems.
Packit 575503
Packit 575503
Minor test suite updates.
Packit 575503
Packit 575503
Fixed latent bug in parser (freeing memory).
Packit 575503
Packit 575503
Changes from 2.12.34 to 2.12.35
Packit 575503
-------------------------------
Packit 575503
Packit 575503
VMS updates.
Packit 575503
Packit 575503
Flush stdout at top of err() and stderr at bottom.
Packit 575503
Packit 575503
Fixed bug in eval_condition() -- it wasn't testing for MAYBE_NUM and
Packit 575503
  doing the force_number().
Packit 575503
Packit 575503
Included the missing manyfiles.awk and a new test to catch the above bug which
Packit 575503
  I am amazed wasn't already caught by the test suite -- it's pretty basic.
Packit 575503
Packit 575503
Changes from 2.12.33 to 2.12.34
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Atari updates -- including bug fix.
Packit 575503
Packit 575503
More VMS updates -- also nuke vms/version.com.
Packit 575503
Packit 575503
Fixed bug in handling of large numbers of redirections -- it was probably never
Packit 575503
  tested before (blush!).
Packit 575503
Packit 575503
Minor rearrangement of code in r_force_number().
Packit 575503
Packit 575503
Made chem and regtest tests a bit more portable (Ultrix again).
Packit 575503
Packit 575503
Added another test -- manyfiles -- not invoked under any other test -- very Unix
Packit 575503
  specific.
Packit 575503
Packit 575503
Rough beginning of LIMITATIONS file -- need my AWK book to complete it.
Packit 575503
Packit 575503
Changes from 2.12.32 to 2.12.33
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Expunge debug.? from various files.
Packit 575503
Packit 575503
Remove vestiges of Floor and Ceil kludge.
Packit 575503
Packit 575503
Special case integer division -- mainly for Cray, but maybe someone else
Packit 575503
  will benefit.
Packit 575503
Packit 575503
Workaround for iop_close closing an output pipe descriptor on Cray --
Packit 575503
  not conditional since I think it may fix a bug on SGI as well and I don't
Packit 575503
  think it can hurt elsewhere.
Packit 575503
Packit 575503
Fixed memory leak in assoc_lookup().
Packit 575503
Packit 575503
Small cleanup in test suite.
Packit 575503
Packit 575503
Changes from 2.12.31 to 2.12.32
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Nuked debug.c and debugging flag -- there are better ways.
Packit 575503
Packit 575503
Nuked version.sh and version.c in subdirectories.
Packit 575503
Packit 575503
Fixed bug in handling of IGNORECASE.
Packit 575503
Packit 575503
Fixed bug when FIELDWIDTHS was set via -v option.
Packit 575503
Packit 575503
Fixed (obscure) bug when $0 is assigned a numerical value.
Packit 575503
Packit 575503
Fixed so that escape sequences in command-line assignments work (as it already
Packit 575503
  said in the comment).
Packit 575503
Packit 575503
Added a few cases to test suite.
Packit 575503
Packit 575503
Moved support/* back into distribution.
Packit 575503
Packit 575503
VMS updates.
Packit 575503
Packit 575503
Changes from 2.12.30 to 2.12.31
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Cosmetic manual page changes.
Packit 575503
Packit 575503
Updated sunos3 config.
Packit 575503
Packit 575503
Small changes in test suite including renaming files over 14 chars. in length.
Packit 575503
Packit 575503
Changes from 2.12.29 to 2.12.30
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Bug fix for many string concatenations in a row.
Packit 575503
Packit 575503
Changes from 2.12.28 to 2.12.29
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Minor cleanup in awk.y
Packit 575503
Packit 575503
Minor VMS update.
Packit 575503
 
Packit 575503
Minor atari update.
Packit 575503
Packit 575503
Changes from 2.12.27 to 2.12.28
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Got rid of the debugging goop in eval.c -- there are better ways.
Packit 575503
Packit 575503
Sequent port.
Packit 575503
Packit 575503
VMS changes left out of the last patch -- sigh!  config/vms.h renamed
Packit 575503
  to config/vms-conf.h.
Packit 575503
Packit 575503
Fixed missing/tzset.c
Packit 575503
Packit 575503
Removed use of gcvt() and GCVT_MISSING -- turns out it was no faster than
Packit 575503
  sprintf("%g") and caused all sorts of portability headaches.
Packit 575503
Packit 575503
Tuned get_field() -- it was unnecessarily parsing the whole record on reference
Packit 575503
  to $0.
Packit 575503
Packit 575503
Tuned interpret() a bit in the rule_node loop.
Packit 575503
Packit 575503
In r_force_number(), worked around bug in Uglix strtod() and got rid of 
Packit 575503
  ugly do{}while(0) at Michal's urging.
Packit 575503
Packit 575503
Replaced do_deref() and deref with unref(node) -- much cleaner and a bit faster.
Packit 575503
Packit 575503
Got rid of assign_number() -- contrary to comment, it was no faster than
Packit 575503
  just making a new node and freeing the old one.
Packit 575503
Packit 575503
Replaced make_number() and tmp_number() with macros that call mk_number().
Packit 575503
Packit 575503
Changed freenode() and newnode() into macros -- the latter is getnode()
Packit 575503
  which calls more_nodes() as necessary.
Packit 575503
Packit 575503
Changes from 2.12.26 to 2.12.27
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Completion of Cray 2 port (includes a kludge for floor() and ceil()
Packit 575503
  that may go or be changed -- I think that it may just be working around
Packit 575503
  a bug in chem that is being tweaked on the Cray).
Packit 575503
Packit 575503
More VMS updates.
Packit 575503
Packit 575503
Moved kludge over yacc's insertion of malloc and realloc declarations
Packit 575503
  from protos.h to the Makefile.
Packit 575503
Packit 575503
Added a lisp interpreter in awk to the test suite.  (Invoked under
Packit 575503
  bigtest.)
Packit 575503
Packit 575503
Cleanup in r_force_number() -- I had never gotten around to a thorough
Packit 575503
  profile of the cache code and it turns out to be not worth it.
Packit 575503
Packit 575503
Performance boost -- do lazy force_number()'ing for fields etc. i.e.
Packit 575503
  flag them (MAYBE_NUM) and call force_number only as necessary.
Packit 575503
Packit 575503
Changes from 2.12.25 to 2.12.26
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Rework of regexp stuff so that dynamic regexps have reasonable
Packit 575503
  performance -- string used for compiled regexp is stored and
Packit 575503
  compared to new string -- if same, no recompilation is necessary.
Packit 575503
  Also, very dynamic regexps cause dfa-based searching to be turned
Packit 575503
  off.
Packit 575503
Packit 575503
Code in dev_open() is back to returning fileno(std*) rather than
Packit 575503
  dup()ing it.  This will be documented.  Sorry for the run-around
Packit 575503
  on this.
Packit 575503
Packit 575503
Minor atari updates.
Packit 575503
Packit 575503
Minor vms update.
Packit 575503
Packit 575503
Missing file from MSDOS port.
Packit 575503
Packit 575503
Added warning (under lint) if third arg. of [g]sub is a constant and
Packit 575503
  handle it properly in the code (i.e. return how many matches).
Packit 575503
Packit 575503
Changes from 2.12.24 to 2.12.25
Packit 575503
-------------------------------
Packit 575503
Packit 575503
MSDOS port.
Packit 575503
Packit 575503
Non-consequential changes to regexp variables in preparation for
Packit 575503
  a more serious change to fix a serious performance problem.
Packit 575503
Packit 575503
Changes from 2.12.23 to 2.12.24
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Fixed bug in output flushing introduced a few patches back.  This caused
Packit 575503
  serious performance losses.
Packit 575503
Packit 575503
Changes from 2.12.22 to 2.12.23
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Accidentally left config/cray2-60 out of last patch.
Packit 575503
Packit 575503
Added some missing dependencies to Makefile.
Packit 575503
Packit 575503
Cleaned up mkconf a bit; made yacc the default parser (no alloca needed,
Packit 575503
  right?); added rs6000 hook for signed characters.
Packit 575503
Packit 575503
Made regex.c with NO_ALLOCA undefined work.
Packit 575503
Packit 575503
Fixed bug in dfa.c for systems where free(NULL) bombs.
Packit 575503
Packit 575503
Deleted a few cant_happen()'s that *really* can't hapen.
Packit 575503
Packit 575503
Changes from 2.12.21 to 2.12.22
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Added to config stuff the ability to choose YACC rather than bison.
Packit 575503
Packit 575503
Fixed CHAR_UNSIGNED in config.h-dist.
Packit 575503
Packit 575503
Second arg. of strtod() is char ** rather than const char **. 
Packit 575503
Packit 575503
stackb is now initially malloc()'ed since it may be realloc()'ed.
Packit 575503
Packit 575503
VMS updates.
Packit 575503
Packit 575503
Added SIZE_T_MISSING to config stuff and a default typedef to awk.h.
Packit 575503
  (Maybe it is not needed on any current systems??)
Packit 575503
Packit 575503
re_compile_pattern()'s size is now size_t unconditionally.
Packit 575503
Packit 575503
Changes from 2.12.20 to 2.12.21
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Corrected missing/gcvt.c.
Packit 575503
Packit 575503
Got rid of use of dup2() and thus DUP_MISSING.
Packit 575503
Packit 575503
Updated config/sgi33.
Packit 575503
Packit 575503
Turned on (and fixed) in cmp_nodes() the behaviour that I *hope* will be in
Packit 575503
  POSIX 1003.2 for relational comparisons.
Packit 575503
Packit 575503
Small updates to test suite.
Packit 575503
Packit 575503
Changes from 2.12.19 to 2.12.20
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Sloppy, sloppy, sloppy!!  I didn't even try to compile the last two
Packit 575503
  patches.  This one fixes goofs in regex.c.
Packit 575503
Packit 575503
Changes from 2.12.18 to 2.12.19
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Cleanup of last patch.
Packit 575503
Packit 575503
Changes from 2.12.17 to 2.12.18
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Makefile renamed to Makefile-dist.
Packit 575503
Packit 575503
Added alloca() configuration to mkconf.  (A bit kludgey.)  Just
Packit 575503
  add a single line containing ALLOCA_PW, ALLOCA_S or ALLOCA_C
Packit 575503
  to the appropriate config file to have Makefile-dist edited
Packit 575503
  accordingly.
Packit 575503
Packit 575503
Reorganized output flushing to correspond with new semantics of
Packit 575503
  devopen() on "/dev/std*" etc.
Packit 575503
Packit 575503
Fixed rest of last goof!!
Packit 575503
Packit 575503
Save and restore errno in do_pathopen().
Packit 575503
Packit 575503
Miscellaneous atari updates.
Packit 575503
Packit 575503
Get rid of the trailing comma in the NODETYPE definition (Cray
Packit 575503
  compiler won't take it).
Packit 575503
Packit 575503
Try  to make the use of `const' consistent since Cray compiler is
Packit 575503
  fussy about that.  See the changes to `basename' and `myname'.
Packit 575503
Packit 575503
It turns out that, according to section 3.8.3 (Macro Replacement)
Packit 575503
  of the ANSI Standard:  ``If there are sequences of preprocessing
Packit 575503
  tokens within the list of arguments that would otherwise act as
Packit 575503
  preprocessing directives, the behavior is undefined.''  That means
Packit 575503
  that you cannot count on the behavior of the declaration of
Packit 575503
  re_compile_pattern in awk.h, and indeed the Cray compiler chokes on it.
Packit 575503
Packit 575503
Replaced alloca with malloc/realloc/free in regex.c.  It was much simpler
Packit 575503
  than expected.  (Inside NO_ALLOCA for now -- by default no alloca.)
Packit 575503
Packit 575503
Added a configuration file, config/cray60, for Unicos-6.0.
Packit 575503
Packit 575503
Changes from 2.12.16 to 2.12.17
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Ooops.  Goofed signal use in last patch.
Packit 575503
Packit 575503
Changes from 2.12.15 to 2.12.16
Packit 575503
-------------------------------
Packit 575503
Packit 575503
RENAMED *_dir to just * (e.g. missing_dir).
Packit 575503
Packit 575503
Numerous VMS changes.
Packit 575503
Packit 575503
Proper inclusion of atari and vms files.
Packit 575503
Packit 575503
Added experimental (ifdef'd out) RELAXED_CONTINUATION and DEFAULT_FILETYPE
Packit 575503
 -- please comment on these!
Packit 575503
Packit 575503
Moved pathopen() to io.c (sigh).
Packit 575503
Packit 575503
Put local directory ahead in default AWKPATH.
Packit 575503
Packit 575503
Added facility in mkconf to echo comments on stdout:  lines beginning
Packit 575503
  with "#echo " will have the remainder of the line echoed when mkconf is run.
Packit 575503
  Any lines starting with "#" will otherwise be treated as comments.  The
Packit 575503
  intent is to be able to say:
Packit 575503
  "#echo Make sure you uncomment alloca.c in the Makefile"
Packit 575503
  or the like.
Packit 575503
Packit 575503
Prototype fix for V.4
Packit 575503
Packit 575503
Fixed version_string to not print leading @(#).
Packit 575503
Packit 575503
Fixed FIELDWIDTHS to work with strict (turned out to be easy).
Packit 575503
Packit 575503
Fixed conf for V.2.
Packit 575503
Packit 575503
Changed semantics of /dev/fd/n to be like on real /dev/fd.
Packit 575503
Packit 575503
Several configuration and updates in the makefile.
Packit 575503
Packit 575503
Updated manpage.
Packit 575503
Packit 575503
Include tzset.c and system.c from missing_dir that were accidently left out of
Packit 575503
  the last patch.
Packit 575503
Packit 575503
Fixed bug in cmdline variable assignment -- arg was getting freed(!) in
Packit 575503
  call to variable.
Packit 575503
Packit 575503
Backed out of parse-time constant folding for now, until I can figure out
Packit 575503
  how to do it right.
Packit 575503
Packit 575503
Fixed devopen() so that getline <"-" works.
Packit 575503
Packit 575503
Changes from 2.12.14 to 2.12.15
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Changed config/* to a condensed form that can be used with mkconf to generate
Packit 575503
  a config.h from config.h-dist -- much easier to maintain.  Please check
Packit 575503
  carefully against what you had before for a particular system and report
Packit 575503
  any problems.  vms.h remains separate since the stuff at the bottom
Packit 575503
  didn't quite fit the mkconf model -- hopefully cleared up later.
Packit 575503
Packit 575503
Fixed bug in grammar -- didn't allow function definition to be separated from 
Packit 575503
  other rules by a semi-colon.
Packit 575503
Packit 575503
VMS fix to #includes in missing.c -- should we just be including awk.h?
Packit 575503
Packit 575503
Updated README for texinfo.tex version.
Packit 575503
Packit 575503
Updating of copyright in all .[chy] files.
Packit 575503
Packit 575503
Added but commented out Michal's fix to strftime.
Packit 575503
Packit 575503
Added tzset() emulation based on Rick Adams' code.  Added TZSET_MISSING to
Packit 575503
	config.h-dist.
Packit 575503
Packit 575503
Added strftime.3 man page for missing_dir
Packit 575503
Packit 575503
More posix:	func, **, **= don't work in -W posix
Packit 575503
Packit 575503
More lint:	^, ^= not in old awk
Packit 575503
Packit 575503
gawk.1:		removed ref to -DNO_DEV_FD, other minor updating.
Packit 575503
Packit 575503
Style change:  pushbak becomes pushback() in yylex().
Packit 575503
Packit 575503
Changes from 2.12.13 to 2.12.14
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Better (?) organization of awk.h -- attempt to keep all system dependencies
Packit 575503
  near the top and move some of the non-general things out of the config.h
Packit 575503
  files.
Packit 575503
Packit 575503
Change to handling of SYSTEM_MISSING.
Packit 575503
Packit 575503
Small change to ultrix config.
Packit 575503
Packit 575503
Do "/dev/fd/*" etc. checking at runtime.
Packit 575503
Packit 575503
First pass at VMS port.
Packit 575503
Packit 575503
Improvements to error handling (when lexeme spans buffers).
Packit 575503
Packit 575503
Fixed backslash handling -- why didn't I notice this sooner?
Packit 575503
Packit 575503
Added programs from book to test suite and new target "bigtest" to Makefile.
Packit 575503
Packit 575503
Changes from 2.12.12 to 2.12.13
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Recognize OFS and ORS specially so that OFS = 9 works without efficiency hit.
Packit 575503
  Took advantage of opportunity to tune do_print*() for about 10% win on a
Packit 575503
  print with 5 args (i.e. small but significant).
Packit 575503
Packit 575503
Somewhat pervasive changes to reconcile CONVFMT vs. OFMT.
Packit 575503
Packit 575503
Better initialization of builtin vars.
Packit 575503
Packit 575503
Make config/* consistent wrt STRTOL_MISSING.
Packit 575503
Packit 575503
Small portability improvement to alloca.s
Packit 575503
Packit 575503
Improvements to lint code in awk.y
Packit 575503
Packit 575503
Replaced strtol() with a better one by Chris Torek.
Packit 575503
Packit 575503
Changes from 2.12.11 to 2.12.12
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Added PORTS file to record successful ports.
Packit 575503
Packit 575503
Added #define const to nothing if not STDC and added const to strtod() header.
Packit 575503
Packit 575503
Added * to printf capabilities and partially implemented ' ' and '+' (has an
Packit 575503
  effect for %d only, silently ignored for other formats).  I'm afraid that's
Packit 575503
  as far as I want to go before I look at a complete replacement for
Packit 575503
  do_sprintf().
Packit 575503
Packit 575503
Added warning for /regexp/ on LHS of MATCHOP.
Packit 575503
Packit 575503
Changes from 2.12.10 to 2.12.11
Packit 575503
-------------------------------
Packit 575503
Packit 575503
Small Makefile improvements.
Packit 575503
Packit 575503
Some remaining nits from the NeXT port.
Packit 575503
Packit 575503
Got rid of bcopy() define in awk.h -- not needed anymore (??)
Packit 575503
Packit 575503
Changed private in builtin.c -- it is special on Sequent.
Packit 575503
Packit 575503
Added subset implementation of strtol() and STRTOL_MISSING.
Packit 575503
Packit 575503
A little bit of cleanup in debug.c, dfa.c.
Packit 575503
Packit 575503
Changes from 2.12.9 to 2.12.10
Packit 575503
------------------------------
Packit 575503
Packit 575503
Redid compatability checking and checking for # of args.
Packit 575503
Packit 575503
Removed all references to variables[] from outside awk.y, in preparation
Packit 575503
  for a more abstract interface to the symbol table.
Packit 575503
Packit 575503
Got rid of a remaining use of bcopy() in regex.c.
Packit 575503
Packit 575503
Changes from 2.12.8 to 2.12.9
Packit 575503
-----------------------------
Packit 575503
Packit 575503
Portability improvements for atari, next and decstation.
Packit 575503
Packit 575503
Bug fix in substr() -- wasn't handling 3rd arg. of -1 properly.
Packit 575503
Packit 575503
Manpage updates.
Packit 575503
Packit 575503
Moved support from src release to doc release.
Packit 575503
Packit 575503
Updated FUTURES file.
Packit 575503
Packit 575503
Added some "lint" warnings.
Packit 575503
Packit 575503
Changes from 2.12.7 to 2.12.8
Packit 575503
-----------------------------
Packit 575503
Packit 575503
Changed time() to systime().
Packit 575503
Packit 575503
Changed warning() in snode() to fatal().
Packit 575503
Packit 575503
strftime() now defaults second arg. to current time.
Packit 575503
Packit 575503
Changes from 2.12.6 to 2.12.7
Packit 575503
-----------------------------
Packit 575503
Packit 575503
Fixed bug in sub_common() involving inadequate allocation of a buffer.
Packit 575503
Packit 575503
Added some missing files to the Makefile.
Packit 575503
Packit 575503
Changes from 2.12.5 to 2.12.6
Packit 575503
-----------------------------
Packit 575503
Packit 575503
Fixed bug wherein non-redirected getline could call iop_close() just
Packit 575503
  prior to a call from do_input().
Packit 575503
Packit 575503
Fixed bug in handling of /dev/stdout and /dev/stderr.
Packit 575503
Packit 575503
Changes from 2.12.4 to 2.12.5
Packit 575503
-----------------------------
Packit 575503
Packit 575503
Updated README and support directory.
Packit 575503
Packit 575503
Changes from 2.12.3 to 2.12.4
Packit 575503
-----------------------------
Packit 575503
Packit 575503
Updated CHANGES and TODO (should have been done in previous 2 patches).
Packit 575503
Packit 575503
Changes from 2.12.2 to 2.12.3
Packit 575503
-----------------------------
Packit 575503
Packit 575503
Brought regex.c and alloca.s into line with current FSF versions.
Packit 575503
Packit 575503
Changes from 2.12.1 to 2.12.2
Packit 575503
-----------------------------
Packit 575503
Packit 575503
Portability improvements; mostly moving system prototypes out of awk.h
Packit 575503
Packit 575503
Introduction of strftime.
Packit 575503
Packit 575503
Use of CONVFMT.
Packit 575503
Packit 575503
Changes from 2.12 to 2.12.1
Packit 575503
-----------------------------
Packit 575503
Packit 575503
Consolidated treatment of command-line assignments (thus correcting the
Packit 575503
-v treatment).
Packit 575503
Packit 575503
Rationalized builtin-variable handling into a table-driven process, thus
Packit 575503
simplifying variable() and eliminating spc_var().
Packit 575503
Packit 575503
Fixed bug in handling of command-line source that ended in a newline.
Packit 575503
Packit 575503
Simplified install() and lookup().
Packit 575503
Packit 575503
Did away with double-mallocing of identifiers and now free second and later
Packit 575503
instances of a name, after the first gets installed into the symbol table.
Packit 575503
Packit 575503
Treat IGNORECASE specially, simplifying a lot of code, and allowing
Packit 575503
checking against strict conformance only on setting it, rather than on each
Packit 575503
pattern match.
Packit 575503
Packit 575503
Fixed regexp matching when IGNORECASE is non-zero (broken when dfa.c was 
Packit 575503
added).
Packit 575503
Packit 575503
Fixed bug where $0 was not being marked as valid, even after it was rebuilt.
Packit 575503
This caused mangling of $0.
Packit 575503
Packit 575503
Packit 575503
Changes from 2.11.1 to 2.12
Packit 575503
-----------------------------
Packit 575503
Packit 575503
Makefile:
Packit 575503
Packit 575503
Portability improvements in Makefile.
Packit 575503
Move configuration stuff into config.h
Packit 575503
Packit 575503
FSF files:
Packit 575503
Packit 575503
Synchronized alloca.[cs] and regex.[ch] with FSF.
Packit 575503
Packit 575503
array.c:
Packit 575503
Packit 575503
Rationalized hash routines into one with a different algorithm.
Packit 575503
delete() now works if the array is a local variable.
Packit 575503
Changed interface of assoc_next() and avoided dereferencing past the end of the
Packit 575503
  array.
Packit 575503
Packit 575503
awk.h:
Packit 575503
Packit 575503
Merged non-prototype and prototype declarations in awk.h.
Packit 575503
Expanded tree_eval #define to short-circuit more calls of r_tree_eval().
Packit 575503
Packit 575503
awk.y:
Packit 575503
Packit 575503
Delinted some of the code in the grammar.
Packit 575503
Fixed and improved some of the error message printing.
Packit 575503
Changed to accomodate unlimited length source lines.
Packit 575503
Line continuation now works as advertised.
Packit 575503
Source lines can be arbitrarily long.
Packit 575503
Refined grammar hacks so that /= assignment works.  Regular expressions
Packit 575503
  starting with /= are recognized at the beginning of a line, after && or ||
Packit 575503
  and after ~ or !~.  More contexts can be added if necessary.
Packit 575503
Fixed IGNORECASE (multiple scans for backslash).
Packit 575503
Condensed expression_lists in array references.
Packit 575503
Detect and warn for correct # args in builtin functions -- call most of them
Packit 575503
  with a fixed number (i.e. fill in defaults at parse-time rather than at
Packit 575503
  run-time).
Packit 575503
Load ENVIRON only if it is referenced (detected at parse-time).
Packit 575503
Treat NF, FS, RS, NR, FNR specially at parse time, to improve run time.
Packit 575503
Fold constant expressions at parse time.
Packit 575503
Do make_regexp() on third arg. of split() at parse tiem if it is a constant.
Packit 575503
Packit 575503
builtin.c:
Packit 575503
Packit 575503
srand() returns 0 the first time called.
Packit 575503
Replaced alloca() with malloc() in do_sprintf().
Packit 575503
Fixed setting of RSTART and RLENGTH in do_match().
Packit 575503
Got rid of get_{one,two,three} and allowance for variable # of args. at
Packit 575503
  run-time -- this is now done at parse-time.
Packit 575503
Fixed latent bug in [g]sub whereby changes to $0 would never get made.
Packit 575503
Rewrote much of sub_common() for simplicity and performance.
Packit 575503
Added ctime() and time() builtin functions (unless -DSTRICT).  ctime() returns
Packit 575503
  a time string like the C function, given the number of seconds since the epoch
Packit 575503
  and time() returns the current time in seconds.
Packit 575503
do_sprintf() now checks for mismatch between format string and number of
Packit 575503
  arguments supplied.
Packit 575503
Packit 575503
dfa.c
Packit 575503
Packit 575503
This is borrowed (almost unmodified) from GNU grep to provide faster searches.
Packit 575503
Packit 575503
eval.c
Packit 575503
Packit 575503
Node_var, Node_var_array and Node_param_list handled from macro rather
Packit 575503
  than in r_tree_eval().
Packit 575503
Changed cmp_nodes() to not do a force_number() -- this, combined with a 
Packit 575503
    force_number() on ARGV[] and ENVIRON[] brings it into line with other awks
Packit 575503
Greatly simplified cmp_nodes().
Packit 575503
Separated out Node_NF, Node_FS, Node_RS, Node_NR and Node_FNR in get_lhs().
Packit 575503
All adjacent string concatenations now done at once.
Packit 575503
Packit 575503
field.c
Packit 575503
Packit 575503
Added support for FIELDWIDTHS.
Packit 575503
Fixed bug in get_field() whereby changes to a field were not always
Packit 575503
  properly reflected in $0.
Packit 575503
Reordered tests in parse_field() so that reference off the end of the buffer
Packit 575503
  doesn't happen.
Packit 575503
set_FS() now sets *parse_field i.e. routine to call depending on type of FS.
Packit 575503
It also does make_regexp() for FS if needed.  get_field() passes FS_regexp
Packit 575503
  to re_parse_field(), as does do_split().
Packit 575503
Changes to set_field() and set_record() to avoid malloc'ing and free'ing the
Packit 575503
  field nodes repeatedly.  The fields now just point into $0 unless they are
Packit 575503
  assigned to another variable or changed.  force_number() on the field is
Packit 575503
  *only* done when the field is needed.
Packit 575503
Packit 575503
gawk.1
Packit 575503
Packit 575503
Fixed troff formatting problem on .TP lines.
Packit 575503
Packit 575503
io.c
Packit 575503
Packit 575503
Moved some code out into iop.c.
Packit 575503
Output from pipes and system() calls is properly synchronized.
Packit 575503
Status from pipe close properly returned.
Packit 575503
Bug in getline with no redirect fixed.
Packit 575503
Packit 575503
iop.c
Packit 575503
Packit 575503
This file contains a totally revamped get_a_record and associated code.
Packit 575503
Packit 575503
main.c
Packit 575503
Packit 575503
Command line programs no longer use a temporary file.
Packit 575503
Therefore, tmpnam() no longer required.
Packit 575503
Deprecated -a and -e options -- they will go away in the next release,
Packit 575503
  but for now they cause a warning.
Packit 575503
Moved -C, -V, -c options to -W ala posix.
Packit 575503
Added -W posix option: throw out \x
Packit 575503
Added -W lint option.
Packit 575503
Packit 575503
Packit 575503
node.c
Packit 575503
Packit 575503
force_number() now allows pure numerics to have leading whitespace.
Packit 575503
Added make_string facility to optimize case of adding an already malloc'd
Packit 575503
  string.
Packit 575503
Cleaned up and simplified do_deref().
Packit 575503
Fixed bug in handling of stref==255 in do_deref().
Packit 575503
Packit 575503
re.c
Packit 575503
Packit 575503
contains the interface to regexp code
Packit 575503
Packit 575503
Changes from 2.11.1 to FSF version of same
Packit 575503
------------------------------------------
Packit 575503
Thu Jan  4 14:19:30 1990  Jim Kingdon  (kingdon at albert)
Packit 575503
Packit 575503
	* Makefile (YACC): Add -y to bison part.
Packit 575503
Packit 575503
	* missing.c: Add #include <stdio.h>.
Packit 575503
Packit 575503
Sun Dec 24 16:16:05 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
Packit 575503
Packit 575503
	* Makefile: Add (commented out) default defines for Sony News.
Packit 575503
Packit 575503
	* awk.h: Move declaration of vprintf so it will compile when
Packit 575503
	-DVPRINTF_MISSING is defined.
Packit 575503
Packit 575503
Mon Nov 13 18:54:08 1989  Robert J. Chassell  (bob at apple-gunkies.ai.mit.edu)
Packit 575503
Packit 575503
        * gawk.texinfo: changed @-commands that are not part of the
Packit 575503
          standard, currently released texinfmt.el to those that are.
Packit 575503
          Otherwise, only people with the as-yet unreleased makeinfo.c can
Packit 575503
          format this file.
Packit 575503
Packit 575503
Changes from 2.11beta to 2.11.1 (production)
Packit 575503
--------------------------------------------
Packit 575503
Packit 575503
Went from "beta" to production status!!!
Packit 575503
Packit 575503
Now flushes stdout before closing pipes or redirected files to
Packit 575503
synchronize output.
Packit 575503
Packit 575503
MS-DOS changes added in.
Packit 575503
Packit 575503
Signal handler return type parameterized in Makefile and awk.h and
Packit 575503
some lint removed.  debug.c cleaned up.
Packit 575503
Packit 575503
Fixed FS splitting to never match null strings, per book.
Packit 575503
Packit 575503
Correction to the manual's description of FS.
Packit 575503
Packit 575503
Some compilers break on char *foo = "string" + 4 so fixed version.sh and
Packit 575503
main.c.
Packit 575503
Packit 575503
Changes from 2.10beta to 2.11beta
Packit 575503
---------------------------------
Packit 575503
Packit 575503
This release fixes all reported bugs that we could reproduce.  Probably
Packit 575503
some of the changes are not documented here.
Packit 575503
Packit 575503
The next release will probably not be a beta release!
Packit 575503
Packit 575503
The most important change is the addition of the -nostalgia option. :-)
Packit 575503
Packit 575503
The documentation has been improved and brought up-to-date.
Packit 575503
Packit 575503
There has been a lot of general cleaning up of the code that is not otherwise
Packit 575503
documented here.  There has been a movement toward using standard-conforming
Packit 575503
library routines and providing them (in missing.d) for systems lacking them.
Packit 575503
Improved (hopefully) configuration through Makfile modifications and missing.c.
Packit 575503
In particular, straightened out confusion over vprintf #defines, declarations
Packit 575503
etc.
Packit 575503
Packit 575503
Deleted RCS log comments from source, to reduce source size by about one third.
Packit 575503
Most of them were horribly out-of-date, anyway.
Packit 575503
Packit 575503
Renamed source files to reflect (for the most part) their contents.
Packit 575503
Packit 575503
More and improved error messages.  Cleanup and fixes to yyerror().
Packit 575503
String constants are not altered in input buffer, so error messages come out 
Packit 575503
better.  Fixed usage message.  Make use of ANSI C strerror() function
Packit 575503
(provided).
Packit 575503
Packit 575503
Plugged many more memory leaks.  The memory consumption is now quite
Packit 575503
reasonable over a wide range of programs.
Packit 575503
Packit 575503
Uses volatile declaration if STDC > 0 to avoid problems due to longjmp.
Packit 575503
Packit 575503
New -a and -e options to use awk or egrep style regexps, respectively,
Packit 575503
since POSIX says awk should use egrep regexps.  Default is -a.
Packit 575503
Packit 575503
Added -v option for setting variables before the first file is encountered.
Packit 575503
Version information now uses -V and copyleft uses -C.
Packit 575503
Packit 575503
Added a patchlevel.h file and its use for -V and -C.
Packit 575503
Packit 575503
Append_right() optimized for major improvement to programs with a *lot*
Packit 575503
of statements.
Packit 575503
Packit 575503
Operator precedence has been corrected to match draft Posix.
Packit 575503
Packit 575503
Tightened up grammar for builtin functions so that only length
Packit 575503
may be called without arguments or parentheses.
Packit 575503
Packit 575503
/regex/ is now a normal expression that can appear in any expression
Packit 575503
context.
Packit 575503
Packit 575503
Allow /= to begin a regexp.  Allow ..[../..].. in a regexp.
Packit 575503
Packit 575503
Allow empty compound statements ({}).
Packit 575503
Packit 575503
Made return and next illegal outside a function and in BEGIN/END respectively.
Packit 575503
Packit 575503
Division by zero is now illegal and causes a fatal error.
Packit 575503
Packit 575503
Fixed exponentiation so that x ^ 0 and x ^= 0 both return 1.
Packit 575503
Packit 575503
Fixed do_sqrt, do_log, and do_exp to do argument/return checking and
Packit 575503
print an error message, per the manual.
Packit 575503
Packit 575503
Fixed main to catch SIGSEGV to get source and data file line numbers.
Packit 575503
Packit 575503
Fixed yyerror to print the ^ at the beginning of the bad token, not the end.
Packit 575503
Packit 575503
Fix to substr() builtin:  it was failing if the arguments
Packit 575503
weren't already strings.
Packit 575503
Packit 575503
Added new node value flag NUMERIC to indicate that a variable is
Packit 575503
purely a number as opposed to type NUM which indicates that
Packit 575503
the node's numeric value is valid.  This is set in make_number(),
Packit 575503
tmp_number and r_force_number() when appropriate and used in
Packit 575503
cmp_nodes().  This fixed a bug in comparison of variables that had
Packit 575503
numeric prefixes.  The new code uses strtod() and eliminates is_a_number().
Packit 575503
A simple strtod() is provided for systems lacking one.  It does no
Packit 575503
overflow checking, so could be improved.
Packit 575503
Packit 575503
Simplification and efficiency improvement in force_string.
Packit 575503
Packit 575503
Added performance tweak in r_force_number().
Packit 575503
Packit 575503
Fixed a bug with nested loops and break/continue in functions.
Packit 575503
Packit 575503
Fixed inconsistency in handling of empty fields when $0 has to be rebuilt.
Packit 575503
Happens to simplify rebuild_record().
Packit 575503
Packit 575503
Cleaned up the code associated with opening a pipe for reading.  Gawk
Packit 575503
now has its own popen routine (gawk_popen) that allocates an IOBUF
Packit 575503
and keeps track of the pid of the child process.  gawk_pclose
Packit 575503
marks the appropriate child as defunct in the right struct redirect.
Packit 575503
Packit 575503
Cleaned up and fixed close_redir().
Packit 575503
Packit 575503
Fixed an obscure bug to do with redirection.  Intermingled ">" and ">>"
Packit 575503
redirects did not output in a predictable order.
Packit 575503
Packit 575503
Improved handling of output buffering:  now all print[f]s redirected to a tty
Packit 575503
or pipe are flushed immediately and non-redirected output to a tty is flushed
Packit 575503
before the next input record is read.
Packit 575503
Packit 575503
Fixed a bug in get_a_record() where bcopy() could have copied over
Packit 575503
a random pointer.
Packit 575503
Packit 575503
Fixed a bug when RS="" and records separated by multiple blank lines.
Packit 575503
Packit 575503
Got rid of SLOWIO code which was out-of-date anyway.
Packit 575503
Packit 575503
Fix in get_field() for case where $0 is changed and then $(n) are
Packit 575503
changed and then $0 is used.
Packit 575503
Packit 575503
Fixed infinite loop on failure to open file for reading from getline.
Packit 575503
Now handles redirect file open failures properly.
Packit 575503
Packit 575503
Filenames such as /dev/stdin now allowed on the command line as well as
Packit 575503
in redirects.
Packit 575503
Packit 575503
Fixed so that gawk '$1' where $1 is a zero tests false.
Packit 575503
Packit 575503
Fixed parsing so that `RLENGTH -1' parses the same as `RLENGTH - 1',
Packit 575503
for example.
Packit 575503
Packit 575503
The return from a user-defined function now defaults to the Null node.
Packit 575503
This fixes a core-dump-causing bug when the return value  of a function
Packit 575503
is used and that function returns no value.
Packit 575503
Packit 575503
Now catches floating point exceptions to avoid core dumps.
Packit 575503
Packit 575503
Bug fix for deleting elements of an array -- under some conditions, it was
Packit 575503
deleting more than one element at a time.
Packit 575503
Packit 575503
Fix in AWKPATH code for running off the end of the string.
Packit 575503
Packit 575503
Fixed handling of precision in *printf calls.  %0.2d now works properly,
Packit 575503
as does %c.  [s]printf now recognizes %i and %X.
Packit 575503
Packit 575503
Fixed a bug in printing of very large (>240) strings.
Packit 575503
Packit 575503
Cleaned up erroneous behaviour for RS == "".
Packit 575503
Packit 575503
Added IGNORECASE support to index().
Packit 575503
Packit 575503
Simplified and fixed newnode/freenode.
Packit 575503
Packit 575503
Fixed reference to $(anything) in a BEGIN block.
Packit 575503
Packit 575503
Eliminated use of USG rand48().
Packit 575503
Packit 575503
Bug fix in force_string for machines with 16-bit ints.
Packit 575503
Packit 575503
Replaced use of mktemp() with tmpnam() and provided a partial implementation of
Packit 575503
the latter for systems that don't have it.
Packit 575503
Packit 575503
Added a portability check for includes in io.c.
Packit 575503
Packit 575503
Minor portability fix in alloc.c plus addition of xmalloc().
Packit 575503
Packit 575503
Portability fix:  on UMAX4.2, st_blksize is zero for a pipe, thus breaking
Packit 575503
iop_alloc() -- fixed.
Packit 575503
Packit 575503
Workaround for compiler bug on Sun386i in do_sprintf.
Packit 575503
Packit 575503
More and improved prototypes in awk.h.
Packit 575503
Packit 575503
Consolidated C escape parsing code into one place.
Packit 575503
Packit 575503
strict flag is now turned on only when invoked with compatability option.
Packit 575503
It now applies to fewer things.
Packit 575503
Packit 575503
Changed cast of f._ptr in vprintf.c from (unsigned char *) to (char *).
Packit 575503
Hopefully this is right for the systems that use this code (I don't).
Packit 575503
Packit 575503
Support for pipes under MSDOS added.