[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

17. The Evolution of the awk Language

This Info file describes the GNU implementation of awk, which follows the POSIX specification. Many awk users are only familiar with the original awk implementation in Version 7 Unix. (This implementation was the basis for awk in Berkeley Unix, through 4.3--Reno. The 4.4 release of Berkeley Unix uses gawk 2.15.2 for its version of awk.) This chapter briefly describes the evolution of the awk language, with cross references to other parts of the Info file where you can find more information.

17.1 Major Changes between V7 and SVR3.1  The major changes between V7 and System V Release 3.1.
17.2 Changes between SVR3.1 and SVR4  Minor changes between System V Releases 3.1 and 4.
17.3 Changes between SVR4 and POSIX awk  New features from the POSIX standard.
17.4 Extensions in the Bell Laboratories awk  New features from the Bell Laboratories version of awk.
17.5 Extensions in gawk Not in POSIX awk  The extensions in gawk not in POSIX
                                awk.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

17.1 Major Changes between V7 and SVR3.1

The awk language evolved considerably between the release of Version 7 Unix (1978) and the new version first made generally available in System V Release 3.1 (1987). This section summarizes the changes, with cross-references to further details.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

17.2 Changes between SVR3.1 and SVR4

The System V Release 4 version of Unix awk added these features (some of which originated in gawk):


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

17.3 Changes between SVR4 and POSIX awk

The POSIX Command Language and Utilities standard for awk introduced the following changes into the language:

The following common extensions are not permitted by the POSIX standard:


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

17.4 Extensions in the Bell Laboratories awk

Brian Kernighan, one of the original designers of Unix awk, has made his version available via anonymous ftp (see section Other Freely Available awk Implementations). This section describes extensions in his version of awk that are not in POSIX awk.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

17.5 Extensions in gawk Not in POSIX awk

The GNU implementation, gawk, adds a number of features. This sections lists them in the order they were added to gawk. They can all be disabled with either the `--traditional' or `--posix' options (see section Command Line Options).

Version 2.10 of gawk introduced these features:

Version 2.13 of gawk introduced these features:

Version 2.14 of gawk introduced these features:

Version 2.15 of gawk introduced these features:

Version 3.0 of gawk introduced these features:


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by root l2-hrz on May, 9 2001 using texi2html