POSIX/GNU (The GNU Awk User’s Guide)

From Get docs
Gawk/docs/latest/POSIX 002fGNU

Next: Feature History, Previous: BTL, Up: Language History   [Contents][Index]



A.5 Extensions in gawk Not in POSIX awk

The GNU implementation, gawk, adds a large number of features. They can all be disabled with either the --traditional or --posix options (see section Command-Line Options).

A number of features have come and gone over the years. This section summarizes the additional features over POSIX awk that are in the current version of gawk.

  • Additional predefined variables:
  • Special files in I/O redirections:
  • Changes and/or additions to the language:
  • New keywords:
  • Changes to standard awk functions:
  • Additional functions only in gawk:
  • Changes and/or additions in the command-line options: - The AWKPATH environment variable for specifying a path search for the -f command-line option (see section Command-Line Options) - The AWKLIBPATH environment variable for specifying a path search for the -l command-line option (see section Command-Line Options) - The -b, -c, -C, -d, -D, -e, -E, -g, -h, -i, -l, -L, -M, -n, -N, -o, -O, -p, -P, -r, -s, -S, -t, and -V short options. Also, the ability to use GNU-style long-named options that start with --, and the --assign, --bignum, --characters-as-bytes, --copyright, --debug, --dump-variables, --exec, --field-separator, --file, --gen-pot, --help, --include, --lint, --lint-old, --load, --non-decimal-data, --optimize, --no-optimize, --posix, --pretty-print, --profile, --re-interval, --sandbox, --source, --traditional, --use-lc-numeric, and --version long options (see section Command-Line Options).
  • Support for the following obsolete systems was removed from the code and the documentation for gawk version 4.0: - Amiga - Atari - BeOS - Cray - MIPS RiscOS - MS-DOS with the Microsoft Compiler - MS-Windows with the Microsoft Compiler - NeXT - SunOS 3.x, Sun 386 (Road Runner) - Tandem (non-POSIX) - Prestandard VAX C compiler for VAX/VMS - GCC for VAX and Alpha has not been tested for a while.
  • Support for the following obsolete system was removed from the code for gawk version 4.1:
  • Support for the following systems was removed from the code for gawk version 4.2:



Next: Feature History, Previous: BTL, Up: Language History   [Contents][Index]