diff options
Diffstat (limited to 'doc/gawk.info')
-rw-r--r-- | doc/gawk.info | 1620 |
1 files changed, 900 insertions, 720 deletions
diff --git a/doc/gawk.info b/doc/gawk.info index 8061bbd2..06ba46b5 100644 --- a/doc/gawk.info +++ b/doc/gawk.info @@ -615,6 +615,7 @@ entitled "GNU Free Documentation License". * Unix Installation:: Installing `gawk' under various versions of Unix. * Quick Installation:: Compiling `gawk' under Unix. +* Shell Startup Files:: Shell convenience functions. * Additional Configuration Options:: Other compile-time options. * Configuration Philosophy:: How it's all supposed to work. * Non-Unix Installation:: Installation on Other Operating @@ -2640,10 +2641,8 @@ The following list describes options mandated by the POSIX standard: different file name for the output. No space is allowed between the `-o' and FILE, if FILE is supplied. - NOTE: Due to the way `gawk' has evolved, with this option - your program still executes. This will change in the next - major release, such that `gawk' will only pretty-print the - program and not run it. + NOTE: In the past, this option would also execute your + program. This is no longer the case. `-O' `--optimize' @@ -2943,6 +2942,9 @@ Since `.' is included at the beginning, `gawk' searches first in the current directory and then in `/usr/local/share/awk'. In practice, this means that you will rarely need to change the value of `AWKPATH'. + *Note Shell Startup Files::, for information on functions that help +to manipulate the `AWKPATH' variable. + `gawk' places the value of the search path that it used into `ENVIRON["AWKPATH"]'. This provides access to the actual search path value from within an `awk' program. @@ -2982,6 +2984,9 @@ empty value, `gawk' uses a default path; this is typically `/usr/local/lib/gawk', although it can vary depending upon how `gawk' was built. + *Note Shell Startup Files::, for information on functions that help +to manipulate the `AWKLIBPATH' variable. + `gawk' places the value of the search path that it used into `ENVIRON["AWKLIBPATH"]'. This provides access to the actual search path value from within an `awk' program. @@ -3053,13 +3058,6 @@ change. The variables are: supposed to be differences, but occasionally theory and practice don't coordinate with each other.) -`GAWK_NO_PP_RUN' - When `gawk' is invoked with the `--pretty-print' option, it will - not run the program if this environment variable exists. - - CAUTION: This variable will not survive into the next major - release. - `GAWK_STACKSIZE' This specifies the amount by which `gawk' should grow its internal evaluation stack, when needed. @@ -3451,15 +3449,18 @@ sequences apply to both string constants and regexp constants: `\xHH...' The hexadecimal value HH, where HH stands for a sequence of - hexadecimal digits (`0'-`9', and either `A'-`F' or `a'-`f'). Like - the same construct in ISO C, the escape sequence continues until - the first nonhexadecimal digit is seen. (c.e.) However, using - more than two hexadecimal digits produces undefined results. (The - `\x' escape sequence is not allowed in POSIX `awk'.) - - CAUTION: The next major release of `gawk' will change, such - that a maximum of two hexadecimal digits following the `\x' - will be used. + hexadecimal digits (`0'-`9', and either `A'-`F' or `a'-`f'). A + maximum of two digts are allowed after the `\x'. Any further + hexadecimal digits are treated as simple letters or numbers. + (c.e.) (The `\x' escape sequence is not allowed in POSIX awk.) + + CAUTION: In ISO C, the escape sequence continues until the + first nonhexadecimal digit is seen. For many years, `gawk' + would continue incorporating hexadecimal digits into the + value until a non-hexadecimal digit or the end of the string + was encountered. However, using more than two hexadecimal + digits produced undefined results. As of version 4.2, only + two digits are processed. `\/' A literal slash (necessary for regexp constants only). This @@ -10333,10 +10334,24 @@ Options::), they are not special: An associative array containing the values of the environment. The array indices are the environment variable names; the elements are the values of the particular environment variables. For - example, `ENVIRON["HOME"]' might be `"/home/arnold"'. Changing - this array does not affect the environment passed on to any - programs that `awk' may spawn via redirection or the `system()' - function. (In a future version of `gawk', it may do so.) + example, `ENVIRON["HOME"]' might be `/home/arnold'. + + For POSIX `awk', changing this array does not affect the + environment passed on to any programs that `awk' may spawn via + redirection or the `system()' function. + + However, beginning with version 4.2, if not in POSIX compatibility + mode, `gawk' does update its own environment when `ENVIRON' is + changed, thus changing the environment seen by programs that it + creates. You should therefore be especially careful if you modify + `ENVIRON["PATH"]"', which is the search path for finding + executable programs. + + This can also affect the running `gawk' program, since some of the + built-in functions may pay attention to certain environment + variables. The most notable instance of this is `mktime()' (*note + Time Functions::), which pays attention the value of the `TZ' + environment variable on many systems. Some operating systems may not have environment variables. On such systems, the `ENVIRON' array is empty (except for @@ -11901,6 +11916,21 @@ brackets ([ ]): `cos(X)' Return the cosine of X, with X in radians. +`div(NUMERATOR, DENOMINATOR, RESULT)' + Perform integer division, similar to the standard C function of the + same name. First, truncate `numerator' and `denominator' towards + zero, creating integer values. Clear the `result' array, and then + set `result["quotient"]' to the result of `numerator / + denominator', truncated towards zero to an integer, and set + `result["remainder"]' to the result of `numerator % denominator', + truncated towards zero to an integer. This function is primarily + intended for use with arbitrary length integers; it avoids + creating MPFR arbitrary precision floating-point values (*note + Arbitrary Precision Integers::). + + This function is a `gawk' extension. It is not available in + compatibility mode (*note Options::). + `exp(X)' Return the exponential of X (`e ^ X') or report an error if X is out of range. The range of values X can have depends on your @@ -19904,8 +19934,7 @@ output. They are as follows: you typed when you wrote it. This is because `gawk' creates the profiled version by "pretty-printing" its internal representation of the program. The advantage to this is that `gawk' can produce a -standard representation. The disadvantage is that all source code -comments are lost. Also, things such as: +standard representation. Also, things such as: /foo/ @@ -19964,8 +19993,24 @@ the `Ctrl-\' key. called this way, `gawk' "pretty-prints" the program into `awkprof.out', without any execution counts. - NOTE: The `--pretty-print' option still runs your program. This - will change in the next major release. + NOTE: Once upon a time, the `--pretty-print' option would also run + your program. This is is no longer the case. + + There is a significant difference between the output created when +profiling, and that created when pretty-printing. Pretty-printed output +preserves the original comments that were in the program, although their +placement may not correspond exactly to their original locations in the +source code. + + However, as a deliberate design decision, profiling output _omits_ +the original program's comments. This allows you to focus on the +execution count data and helps you avoid the temptation to use the +profiler for pretty-printing. + + Additionally, pretty-printed output does not have the leading +indentation that the profiling output does. This makes it easy to +pretty-print your code once development is completed, and then use the +result as the final version of your program. File: gawk.info, Node: Advanced Features Summary, Prev: Profiling, Up: Advanced Features @@ -22446,6 +22491,62 @@ the following: gawk -M 'BEGIN { n = 13; print n % 2 }' + When dividing two arbitrary precision integers with either `/' or +`%', the result is typically an arbitrary precision floating point +value (unless the denominator evenly divides into the numerator). In +order to do integer division or remainder with arbitrary precision +integers, use the built-in `div()' function (*note Numeric Functions::). + + You can simulate the `div()' function in standard `awk' using this +user-defined function: + + # div --- do integer division + + function div(numerator, denominator, result) + { + split("", result) + + numerator = int(numerator) + denominator = int(denominator) + result["quotient"] = int(numerator / denominator) + result["remainder"] = int(numerator % denominator) + + return 0.0 + } + + The following example program, contributed by Katie Wasserman, uses +`div()' to compute the digits of pi to as many places as you choose to +set: + + # pi.awk --- compute the digits of pi + + BEGIN { + digits = 100000 + two = 2 * 10 ^ digits + pi = two + for (m = digits * 4; m > 0; --m) { + d = m * 2 + 1 + x = pi * m + div(x, d, result) + pi = result["quotient"] + pi = pi + two + } + print pi + } + + When asked about the algorithm used, Katie replied: + + It's not that well known but it's not that obscure either. It's + Euler's modification to Newton's method for calculating pi. Take + a look at lines (23) - (25) here: + `http://mathworld.wolfram.com/PiFormulas.html'. + + The algorithm I wrote simply expands the multiply by 2 and works + from the innermost expression outwards. I used this to program HP + calculators because it's quite easy to modify for tiny memory + devices with smallish word sizes. See + `http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/articles.cgi?read=899'. + ---------- Footnotes ---------- (1) Weisstein, Eric W. `Sylvester's Sequence'. From MathWorld--A @@ -26429,6 +26530,9 @@ the current version of `gawk'. - The `bindtextdomain()', `dcgettext()' and `dcngettext()' functions for internationalization (*note Programmer i18n::). + - The `div()' function for doing integer division and remainder + (*note Numeric Functions::). + * Changes and/or additions in the command-line options: - The `AWKPATH' environment variable for specifying a path @@ -26483,6 +26587,11 @@ the current version of `gawk'. - Ultrix + * Support for the following systems was removed from the code for + `gawk' version 4.2: + + - MirBSD + File: gawk.info, Node: Feature History, Next: Common Extensions, Prev: POSIX/GNU, Up: Language History @@ -26868,6 +26977,26 @@ in POSIX `awk', in the order they were added to `gawk'. * The dynamic extension interface was completely redone (*note Dynamic Extensions::). + * Support for Ultrix was removed. + + + Version 4.2 introduced the following changes: + + * Changes to `ENVIRON' are reflected into `gawk''s environment and + that of programs that it runs. *Note Auto-set::. + + * The `--pretty-print' option no longer runs the `awk' program too. + *Note Options::. + + * The `igawk' program and its manual page are no longer installed + when `gawk' is built. *Note Igawk Program::. + + * The `div()' function. *Note Numeric Functions::. + + * The maximum number of hexdecimal digits in `\x' escapes is now two. + *Note Escape Sequences::. + + * Support for MirBSD was removed. File: gawk.info, Node: Common Extensions, Next: Ranges and Locales, Prev: Feature History, Up: Language History @@ -27385,7 +27514,9 @@ Various `.c', `.y', and `.h' files `doc/igawk.1' The `troff' source for a manual page describing the `igawk' - program presented in *note Igawk Program::. + program presented in *note Igawk Program::. (Since `gawk' can do + its own `@include' processing, neither `igawk' nor `igawk.1' are + installed.) `doc/Makefile.in' The input file used during the configuration process to generate @@ -27427,17 +27558,23 @@ Various `.c', `.y', and `.h' files contains a `Makefile.in' file, which `configure' uses to generate a `Makefile'. `Makefile.am' is used by GNU Automake to create `Makefile.in'. The library functions from *note Library - Functions::, and the `igawk' program from *note Igawk Program::, - are included as ready-to-use files in the `gawk' distribution. - They are installed as part of the installation process. The rest - of the programs in this Info file are available in appropriate - subdirectories of `awklib/eg'. + Functions::, are included as ready-to-use files in the `gawk' + distribution. They are installed as part of the installation + process. The rest of the programs in this Info file are available + in appropriate subdirectories of `awklib/eg'. `extension/*' The source code, manual pages, and infrastructure files for the sample extensions included with `gawk'. *Note Dynamic Extensions::, for more information. +`extras/*' + Additional non-essential files. Currently, this directory + contains some shell startup files to be installed in + `/etc/profile.d' to aid in manipulating the `AWKPATH' and + `AWKLIBPATH' environment variables. *Note Shell Startup Files::, + for more information. + `posix/*' Files needed for building `gawk' on POSIX-compliant systems. @@ -27468,11 +27605,12 @@ configure `gawk' for your system yourself. * Menu: * Quick Installation:: Compiling `gawk' under Unix. +* Shell Startup Files:: Shell convenience functions. * Additional Configuration Options:: Other compile-time options. * Configuration Philosophy:: How it's all supposed to work. -File: gawk.info, Node: Quick Installation, Next: Additional Configuration Options, Up: Unix Installation +File: gawk.info, Node: Quick Installation, Next: Shell Startup Files, Up: Unix Installation B.2.1 Compiling `gawk' for Unix-Like Systems -------------------------------------------- @@ -27528,9 +27666,43 @@ will be asked for your password, and you will have to have been set up previously as a user who is allowed to run the `sudo' command. -File: gawk.info, Node: Additional Configuration Options, Next: Configuration Philosophy, Prev: Quick Installation, Up: Unix Installation +File: gawk.info, Node: Shell Startup Files, Next: Additional Configuration Options, Prev: Quick Installation, Up: Unix Installation -B.2.2 Additional Configuration Options +B.2.2 Shell Startup Files +------------------------- + +The distribution contains shell startup files `gawk.sh' and `gawk.csh' +containing functions to aid in manipulating the `AWKPATH' and +`AWKLIBPATH' environment variables. On a Fedora system, these files +should be installed in `/etc/profile.d'; on other platforms, the +appropriate location may be different. + +`gawkpath_default' + Reset the `AWKPATH' environment variable to its default value. + +`gawkpath_prepend' + Add the argument to the front of the `AWKPATH' environment + variable. + +`gawkpath_append' + Add the argument to the end of the `AWKPATH' environment variable. + +`gawklibpath_default' + Reset the `AWKLIBPATH' environment variable to its default value. + +`gawklibpath_prepend' + Add the argument to the front of the `AWKLIBPATH' environment + variable. + +`gawklibpath_append' + Add the argument to the end of the `AWKLIBPATH' environment + variable. + + + +File: gawk.info, Node: Additional Configuration Options, Next: Configuration Philosophy, Prev: Shell Startup Files, Up: Unix Installation + +B.2.3 Additional Configuration Options -------------------------------------- There are several additional options you may use on the `configure' @@ -27572,7 +27744,7 @@ supplied by `configure'. File: gawk.info, Node: Configuration Philosophy, Prev: Additional Configuration Options, Up: Unix Installation -B.2.3 The Configuration Process +B.2.4 The Configuration Process ------------------------------- This minor node is of interest only if you know something about using @@ -31524,20 +31696,20 @@ Index * --include option: Options. (line 159) * --lint option <1>: Options. (line 185) * --lint option: Command Line. (line 20) -* --lint-old option: Options. (line 297) +* --lint-old option: Options. (line 295) * --load option: Options. (line 173) * --non-decimal-data option <1>: Nondecimal Data. (line 6) * --non-decimal-data option: Options. (line 211) * --non-decimal-data option, strtonum() function and: Nondecimal Data. (line 35) -* --optimize option: Options. (line 238) -* --posix option: Options. (line 256) -* --posix option, --traditional option and: Options. (line 275) +* --optimize option: Options. (line 236) +* --posix option: Options. (line 254) +* --posix option, --traditional option and: Options. (line 273) * --pretty-print option: Options. (line 225) * --profile option <1>: Profiling. (line 12) -* --profile option: Options. (line 244) -* --re-interval option: Options. (line 281) -* --sandbox option: Options. (line 288) +* --profile option: Options. (line 242) +* --re-interval option: Options. (line 279) +* --sandbox option: Options. (line 286) * --sandbox option, disabling system() function: I/O Functions. (line 129) * --sandbox option, input redirection with getline: Getline. (line 19) @@ -31545,9 +31717,9 @@ Index (line 6) * --source option: Options. (line 117) * --traditional option: Options. (line 81) -* --traditional option, --posix option and: Options. (line 275) +* --traditional option, --posix option and: Options. (line 273) * --use-lc-numeric option: Options. (line 220) -* --version option: Options. (line 302) +* --version option: Options. (line 300) * --with-whiny-user-strftime configuration option: Additional Configuration Options. (line 35) * -b option: Options. (line 68) @@ -31555,32 +31727,32 @@ Index * -c option: Options. (line 81) * -D option: Options. (line 108) * -d option: Options. (line 93) -* -e option: Options. (line 338) +* -e option: Options. (line 336) * -E option: Options. (line 125) * -e option: Options. (line 117) * -f option: Options. (line 25) * -F option: Options. (line 21) * -f option: Long. (line 12) -* -F option, -Ft sets FS to TAB: Options. (line 310) +* -F option, -Ft sets FS to TAB: Options. (line 308) * -F option, command-line: Command Line Field Separator. (line 6) -* -f option, multiple uses: Options. (line 315) +* -f option, multiple uses: Options. (line 313) * -g option: Options. (line 147) * -h option: Options. (line 154) * -i option: Options. (line 159) -* -L option: Options. (line 297) +* -L option: Options. (line 295) * -l option: Options. (line 173) * -M option: Options. (line 205) * -N option: Options. (line 220) * -n option: Options. (line 211) -* -O option: Options. (line 238) +* -O option: Options. (line 236) * -o option: Options. (line 225) -* -P option: Options. (line 256) -* -p option: Options. (line 244) -* -r option: Options. (line 281) -* -S option: Options. (line 288) +* -P option: Options. (line 254) +* -p option: Options. (line 242) +* -r option: Options. (line 279) +* -S option: Options. (line 286) * -v option: Assignment Options. (line 12) -* -V option: Options. (line 302) +* -V option: Options. (line 300) * -v option: Options. (line 32) * -W option: Options. (line 46) * . (period), regexp operator: Regexp Operators. (line 44) @@ -31642,10 +31814,10 @@ Index (line 8) * [] (square brackets), regexp operator: Regexp Operators. (line 56) * \ (backslash): Comments. (line 50) -* \ (backslash), \" escape sequence: Escape Sequences. (line 82) +* \ (backslash), \" escape sequence: Escape Sequences. (line 85) * \ (backslash), \' operator (gawk): GNU Regexp Operators. (line 56) -* \ (backslash), \/ escape sequence: Escape Sequences. (line 73) +* \ (backslash), \/ escape sequence: Escape Sequences. (line 76) * \ (backslash), \< operator (gawk): GNU Regexp Operators. (line 30) * \ (backslash), \> operator (gawk): GNU Regexp Operators. @@ -31685,7 +31857,7 @@ Index * \ (backslash), in bracket expressions: Bracket Expressions. (line 17) * \ (backslash), in escape sequences: Escape Sequences. (line 6) * \ (backslash), in escape sequences, POSIX and: Escape Sequences. - (line 105) + (line 108) * \ (backslash), in regexp constants: Computed Regexps. (line 30) * \ (backslash), in shell commands: Quoting. (line 48) * \ (backslash), regexp operator: Regexp Operators. (line 18) @@ -31853,7 +32025,7 @@ Index * awf (amazingly workable formatter) program: Glossary. (line 24) * awk debugging, enabling: Options. (line 108) * awk language, POSIX version: Assignment Ops. (line 137) -* awk profiling, enabling: Options. (line 244) +* awk profiling, enabling: Options. (line 242) * awk programs <1>: Two Rules. (line 6) * awk programs <2>: Executable Scripts. (line 6) * awk programs: Getting Started. (line 12) @@ -31911,10 +32083,10 @@ Index * awkvars.out file: Options. (line 93) * b debugger command (alias for break): Breakpoint Control. (line 11) * backslash (\): Comments. (line 50) -* backslash (\), \" escape sequence: Escape Sequences. (line 82) +* backslash (\), \" escape sequence: Escape Sequences. (line 85) * backslash (\), \' operator (gawk): GNU Regexp Operators. (line 56) -* backslash (\), \/ escape sequence: Escape Sequences. (line 73) +* backslash (\), \/ escape sequence: Escape Sequences. (line 76) * backslash (\), \< operator (gawk): GNU Regexp Operators. (line 30) * backslash (\), \> operator (gawk): GNU Regexp Operators. @@ -31954,7 +32126,7 @@ Index * backslash (\), in bracket expressions: Bracket Expressions. (line 17) * backslash (\), in escape sequences: Escape Sequences. (line 6) * backslash (\), in escape sequences, POSIX and: Escape Sequences. - (line 105) + (line 108) * backslash (\), in regexp constants: Computed Regexps. (line 30) * backslash (\), in shell commands: Quoting. (line 48) * backslash (\), regexp operator: Regexp Operators. (line 18) @@ -32060,7 +32232,7 @@ Index (line 67) * Brian Kernighan's awk <12>: GNU Regexp Operators. (line 82) -* Brian Kernighan's awk <13>: Escape Sequences. (line 109) +* Brian Kernighan's awk <13>: Escape Sequences. (line 112) * Brian Kernighan's awk: When. (line 21) * Brian Kernighan's awk, extensions: BTL. (line 6) * Brian Kernighan's awk, source code: Other Versions. (line 13) @@ -32254,7 +32426,7 @@ Index * cosine: Numeric Functions. (line 15) * counting: Wc Program. (line 6) * csh utility: Statements/Lines. (line 44) -* csh utility, POSIXLY_CORRECT environment variable: Options. (line 356) +* csh utility, POSIXLY_CORRECT environment variable: Options. (line 354) * csh utility, |& operator, comparison with: Two-way I/O. (line 25) * ctime() user-defined function: Function Example. (line 74) * currency symbols, localization: Explaining gettext. (line 104) @@ -32285,12 +32457,12 @@ Index * dark corner, CONVFMT variable: Strings And Numbers. (line 40) * dark corner, escape sequences: Other Arguments. (line 38) * dark corner, escape sequences, for metacharacters: Escape Sequences. - (line 140) + (line 143) * dark corner, exit statement: Exit Statement. (line 30) * dark corner, field separators: Full Line Fields. (line 22) -* dark corner, FILENAME variable <1>: Auto-set. (line 90) +* dark corner, FILENAME variable <1>: Auto-set. (line 104) * dark corner, FILENAME variable: Getline Notes. (line 19) -* dark corner, FNR/NR variables: Auto-set. (line 314) +* dark corner, FNR/NR variables: Auto-set. (line 328) * dark corner, format-control characters: Control Letters. (line 18) * dark corner, FS as null string: Single Character Fields. (line 20) @@ -32440,7 +32612,7 @@ Index * debugger, read commands from a file: Debugger Info. (line 97) * debugging awk programs: Debugger. (line 6) * debugging gawk, bug reports: Bugs. (line 9) -* decimal point character, locale specific: Options. (line 272) +* decimal point character, locale specific: Options. (line 270) * decrement operators: Increment Ops. (line 35) * default keyword: Switch Statement. (line 6) * Deifik, Scott <1>: Bugs. (line 70) @@ -32479,12 +32651,12 @@ Index (line 81) * differences in awk and gawk, command-line directories: Command-line directories. (line 6) -* differences in awk and gawk, ERRNO variable: Auto-set. (line 74) +* differences in awk and gawk, ERRNO variable: Auto-set. (line 88) * differences in awk and gawk, error messages: Special FD. (line 19) * differences in awk and gawk, FIELDWIDTHS variable: User-modified. (line 37) * differences in awk and gawk, FPAT variable: User-modified. (line 43) -* differences in awk and gawk, FUNCTAB variable: Auto-set. (line 116) +* differences in awk and gawk, FUNCTAB variable: Auto-set. (line 130) * differences in awk and gawk, function arguments (gawk): Calling Built-in. (line 16) * differences in awk and gawk, getline command: Getline. (line 19) @@ -32507,7 +32679,7 @@ Index (line 263) * differences in awk and gawk, print/printf statements: Format Modifiers. (line 13) -* differences in awk and gawk, PROCINFO array: Auto-set. (line 130) +* differences in awk and gawk, PROCINFO array: Auto-set. (line 144) * differences in awk and gawk, read timeouts: Read Timeout. (line 6) * differences in awk and gawk, record separators: awk split records. (line 125) @@ -32517,7 +32689,7 @@ Index (line 26) * differences in awk and gawk, RS/RT variables: gawk split records. (line 58) -* differences in awk and gawk, RT variable: Auto-set. (line 265) +* differences in awk and gawk, RT variable: Auto-set. (line 279) * differences in awk and gawk, single-character fields: Single Character Fields. (line 6) * differences in awk and gawk, split() function: String Functions. @@ -32525,7 +32697,7 @@ Index * differences in awk and gawk, strings: Scalar Constants. (line 20) * differences in awk and gawk, strings, storing: gawk split records. (line 77) -* differences in awk and gawk, SYMTAB variable: Auto-set. (line 269) +* differences in awk and gawk, SYMTAB variable: Auto-set. (line 283) * differences in awk and gawk, TEXTDOMAIN variable: User-modified. (line 152) * differences in awk and gawk, trunc-mod operation: Arithmetic Ops. @@ -32541,6 +32713,7 @@ Index * display debugger command: Viewing And Changing Data. (line 8) * display debugger options: Debugger Info. (line 57) +* div: Numeric Functions. (line 18) * division: Arithmetic Ops. (line 44) * do-while statement: Do Statement. (line 6) * do-while statement, use of regexps in: Regexp Usage. (line 19) @@ -32561,12 +32734,12 @@ Index * dump debugger command: Miscellaneous Debugger Commands. (line 9) * dupword.awk program: Dupword Program. (line 31) -* dynamic profiling: Profiling. (line 179) +* dynamic profiling: Profiling. (line 178) * dynamically loaded extensions: Dynamic Extensions. (line 6) * e debugger command (alias for enable): Breakpoint Control. (line 73) * EBCDIC: Ordinal Functions. (line 45) -* effective group ID of gawk user: Auto-set. (line 135) -* effective user ID of gawk user: Auto-set. (line 139) +* effective group ID of gawk user: Auto-set. (line 149) +* effective user ID of gawk user: Auto-set. (line 153) * egrep utility <1>: Egrep Program. (line 6) * egrep utility: Bracket Expressions. (line 26) * egrep.awk program: Egrep Program. (line 54) @@ -32621,13 +32794,13 @@ Index (line 11) * EREs (Extended Regular Expressions): Bracket Expressions. (line 26) * ERRNO variable <1>: TCP/IP Networking. (line 54) -* ERRNO variable: Auto-set. (line 74) +* ERRNO variable: Auto-set. (line 88) * ERRNO variable, with BEGINFILE pattern: BEGINFILE/ENDFILE. (line 26) * ERRNO variable, with close() function: Close Files And Pipes. (line 141) * ERRNO variable, with getline command: Getline. (line 19) * error handling: Special FD. (line 19) -* error handling, ERRNO variable and: Auto-set. (line 74) +* error handling, ERRNO variable and: Auto-set. (line 88) * error output: Special FD. (line 6) * escape processing, gsub()/gensub()/sub() functions: Gory Details. (line 6) @@ -32660,10 +32833,10 @@ Index * exit status, of VMS: VMS Running. (line 28) * exit the debugger: Miscellaneous Debugger Commands. (line 99) -* exp: Numeric Functions. (line 18) +* exp: Numeric Functions. (line 33) * expand utility: Very Simple. (line 73) * Expat XML parser library: gawkextlib. (line 35) -* exponent: Numeric Functions. (line 18) +* exponent: Numeric Functions. (line 33) * expressions: Expressions. (line 6) * expressions, as patterns: Expression Patterns. (line 6) * expressions, assignment: Assignment Ops. (line 6) @@ -32681,7 +32854,7 @@ Index (line 6) * extension API version: Extension Versioning. (line 6) -* extension API, version number: Auto-set. (line 232) +* extension API, version number: Auto-set. (line 246) * extension example: Extension Example. (line 6) * extension registration: Registration Functions. (line 6) @@ -32762,7 +32935,7 @@ Index * file names, distinguishing: Auto-set. (line 56) * file names, in compatibility mode: Special Caveats. (line 9) * file names, standard streams in gawk: Special FD. (line 48) -* FILENAME variable <1>: Auto-set. (line 90) +* FILENAME variable <1>: Auto-set. (line 104) * FILENAME variable: Reading Files. (line 6) * FILENAME variable, getline, setting with: Getline Notes. (line 19) * filenames, assignments as: Ignoring Assigns. (line 6) @@ -32830,9 +33003,9 @@ Index * flush buffered output: I/O Functions. (line 28) * fnmatch() extension function: Extension Sample Fnmatch. (line 12) -* FNR variable <1>: Auto-set. (line 100) +* FNR variable <1>: Auto-set. (line 114) * FNR variable: Records. (line 6) -* FNR variable, changing: Auto-set. (line 314) +* FNR variable, changing: Auto-set. (line 328) * for statement: For Statement. (line 6) * for statement, looping over arrays: Scanning an Array. (line 20) * fork() extension function: Extension Sample Fork. @@ -32869,7 +33042,7 @@ Index * FS variable, --field-separator option and: Options. (line 21) * FS variable, as null string: Single Character Fields. (line 20) -* FS variable, as TAB character: Options. (line 268) +* FS variable, as TAB character: Options. (line 266) * FS variable, changing value of: Field Separators. (line 35) * FS variable, running awk programs and: Cut Program. (line 63) * FS variable, setting from command line: Command Line Field Separator. @@ -32882,7 +33055,7 @@ Index * FSF (Free Software Foundation): Manual History. (line 6) * fts() extension function: Extension Sample File Functions. (line 61) -* FUNCTAB array: Auto-set. (line 116) +* FUNCTAB array: Auto-set. (line 130) * function calls: Function Calls. (line 6) * function calls, indirect: Indirect Calls. (line 6) * function calls, indirect, @-notation for: Indirect Calls. (line 47) @@ -32931,8 +33104,8 @@ Index (line 44) * G-d: Acknowledgments. (line 94) * Garfinkle, Scott: Contributors. (line 34) -* gawk program, dynamic profiling: Profiling. (line 179) -* gawk version: Auto-set. (line 207) +* gawk program, dynamic profiling: Profiling. (line 178) +* gawk version: Auto-set. (line 221) * gawk, ARGIND variable in: Other Arguments. (line 15) * gawk, awk and <1>: This Manual. (line 14) * gawk, awk and: Preface. (line 21) @@ -32950,13 +33123,13 @@ Index * gawk, distribution: Distribution contents. (line 6) * gawk, ERRNO variable in <1>: TCP/IP Networking. (line 54) -* gawk, ERRNO variable in <2>: Auto-set. (line 74) +* gawk, ERRNO variable in <2>: Auto-set. (line 88) * gawk, ERRNO variable in <3>: BEGINFILE/ENDFILE. (line 26) * gawk, ERRNO variable in <4>: Close Files And Pipes. (line 141) * gawk, ERRNO variable in: Getline. (line 19) -* gawk, escape sequences: Escape Sequences. (line 117) -* gawk, extensions, disabling: Options. (line 256) +* gawk, escape sequences: Escape Sequences. (line 120) +* gawk, extensions, disabling: Options. (line 254) * gawk, features, adding: Adding Code. (line 6) * gawk, features, advanced: Advanced Features. (line 6) * gawk, field separators and: User-modified. (line 71) @@ -32967,7 +33140,7 @@ Index * gawk, FPAT variable in <1>: User-modified. (line 43) * gawk, FPAT variable in: Splitting By Content. (line 25) -* gawk, FUNCTAB array in: Auto-set. (line 116) +* gawk, FUNCTAB array in: Auto-set. (line 130) * gawk, function arguments and: Calling Built-in. (line 16) * gawk, hexadecimal numbers and: Nondecimal-numbers. (line 42) * gawk, IGNORECASE variable in <1>: Array Sorting Functions. @@ -32999,7 +33172,7 @@ Index * gawk, predefined variables and: Built-in Variables. (line 14) * gawk, PROCINFO array in <1>: Two-way I/O. (line 99) * gawk, PROCINFO array in <2>: Time Functions. (line 47) -* gawk, PROCINFO array in: Auto-set. (line 130) +* gawk, PROCINFO array in: Auto-set. (line 144) * gawk, regexp constants and: Using Constant Regexps. (line 28) * gawk, regular expressions, case sensitivity: Case-sensitivity. @@ -33007,23 +33180,29 @@ Index * gawk, regular expressions, operators: GNU Regexp Operators. (line 6) * gawk, regular expressions, precedence: Regexp Operators. (line 161) -* gawk, RT variable in <1>: Auto-set. (line 265) +* gawk, RT variable in <1>: Auto-set. (line 279) * gawk, RT variable in <2>: Multiple Line. (line 129) * gawk, RT variable in: awk split records. (line 125) * gawk, See Also awk: Preface. (line 34) * gawk, source code, obtaining: Getting. (line 6) * gawk, splitting fields and: Constant Size. (line 87) * gawk, string-translation functions: I18N Functions. (line 6) -* gawk, SYMTAB array in: Auto-set. (line 269) +* gawk, SYMTAB array in: Auto-set. (line 283) * gawk, TEXTDOMAIN variable in: User-modified. (line 152) * gawk, timestamps: Time Functions. (line 6) * gawk, uses for: Preface. (line 34) -* gawk, versions of, information about, printing: Options. (line 302) +* gawk, versions of, information about, printing: Options. (line 300) * gawk, VMS version of: VMS Installation. (line 6) * gawk, word-boundary operator: GNU Regexp Operators. (line 63) * gawkextlib: gawkextlib. (line 6) * gawkextlib project: gawkextlib. (line 6) +* gawklibpath_append shell function: Shell Startup Files. (line 29) +* gawklibpath_default shell function: Shell Startup Files. (line 22) +* gawklibpath_prepend shell function: Shell Startup Files. (line 25) +* gawkpath_append shell function: Shell Startup Files. (line 19) +* gawkpath_default shell function: Shell Startup Files. (line 12) +* gawkpath_prepend shell function: Shell Startup Files. (line 15) * General Public License (GPL): Glossary. (line 399) * General Public License, See GPL: Manual History. (line 11) * generate time values: Time Functions. (line 25) @@ -33100,7 +33279,7 @@ Index * Grigera, Juan: Contributors. (line 57) * group database, reading: Group Functions. (line 6) * group file: Group Functions. (line 6) -* group ID of gawk user: Auto-set. (line 180) +* group ID of gawk user: Auto-set. (line 194) * groups, information about: Group Functions. (line 6) * gsub <1>: String Functions. (line 140) * gsub: Using Constant Regexps. @@ -33122,7 +33301,7 @@ Index * history expansion, in debugger: Readline Support. (line 6) * histsort.awk program: History Sorting. (line 25) * Hughes, Phil: Acknowledgments. (line 43) -* HUP signal, for dynamic profiling: Profiling. (line 211) +* HUP signal, for dynamic profiling: Profiling. (line 210) * hyphen (-), - operator: Precedence. (line 52) * hyphen (-), -- operator <1>: Precedence. (line 46) * hyphen (-), -- operator: Increment Ops. (line 48) @@ -33201,8 +33380,8 @@ Index * installation, VMS: VMS Installation. (line 6) * installing gawk: Installation. (line 6) * instruction tracing, in debugger: Debugger Info. (line 90) -* int: Numeric Functions. (line 23) -* INT signal (MS-Windows): Profiling. (line 214) +* int: Numeric Functions. (line 38) +* INT signal (MS-Windows): Profiling. (line 213) * integer array indices: Numeric Array Subscripts. (line 31) * integers, arbitrary precision: Arbitrary Precision Integers. @@ -33258,7 +33437,7 @@ Index * Kernighan, Brian <9>: Acknowledgments. (line 78) * Kernighan, Brian <10>: Conventions. (line 38) * Kernighan, Brian: History. (line 17) -* kill command, dynamic profiling: Profiling. (line 188) +* kill command, dynamic profiling: Profiling. (line 187) * Knights, jedi: Undocumented. (line 6) * Kwok, Conrad: Contributors. (line 34) * l debugger command (alias for list): Miscellaneous Debugger Commands. @@ -33330,7 +33509,7 @@ Index * lint checking, empty programs: Command Line. (line 16) * lint checking, issuing warnings: Options. (line 185) * lint checking, POSIXLY_CORRECT environment variable: Options. - (line 341) + (line 339) * lint checking, undefined functions: Pass By Value/Reference. (line 85) * LINT variable: User-modified. (line 88) @@ -33346,14 +33525,14 @@ Index * loading, extensions: Options. (line 173) * local variables, in a function: Variable Scope. (line 6) * locale categories: Explaining gettext. (line 81) -* locale decimal point character: Options. (line 272) +* locale decimal point character: Options. (line 270) * locale, definition of: Locales. (line 6) * localization: I18N and L10N. (line 6) * localization, See internationalization, localization: I18N and L10N. (line 6) -* log: Numeric Functions. (line 28) +* log: Numeric Functions. (line 43) * log files, timestamps in: Time Functions. (line 6) -* logarithm: Numeric Functions. (line 28) +* logarithm: Numeric Functions. (line 43) * logical false/true: Truth Values. (line 6) * logical operators, See Boolean expressions: Boolean Ops. (line 6) * login information: Passwd Functions. (line 16) @@ -33394,8 +33573,8 @@ Index * mawk utility <2>: Nextfile Statement. (line 47) * mawk utility <3>: Concatenation. (line 36) * mawk utility <4>: Getline/Pipe. (line 62) -* mawk utility: Escape Sequences. (line 117) -* maximum precision supported by MPFR library: Auto-set. (line 221) +* mawk utility: Escape Sequences. (line 120) +* maximum precision supported by MPFR library: Auto-set. (line 235) * McIlroy, Doug: Glossary. (line 258) * McPhee, Patrick: Contributors. (line 100) * message object files: Explaining gettext. (line 42) @@ -33407,8 +33586,8 @@ Index (line 54) * messages from extensions: Printing Messages. (line 6) * metacharacters in regular expressions: Regexp Operators. (line 6) -* metacharacters, escape sequences for: Escape Sequences. (line 136) -* minimum precision supported by MPFR library: Auto-set. (line 224) +* metacharacters, escape sequences for: Escape Sequences. (line 139) +* minimum precision supported by MPFR library: Auto-set. (line 238) * mktime: Time Functions. (line 25) * modifiers, in format specifiers: Format Modifiers. (line 6) * monetary information, localization: Explaining gettext. (line 104) @@ -33428,7 +33607,7 @@ Index * networks, programming: TCP/IP Networking. (line 6) * networks, support for: Special Network. (line 6) * newlines <1>: Boolean Ops. (line 69) -* newlines <2>: Options. (line 262) +* newlines <2>: Options. (line 260) * newlines: Statements/Lines. (line 6) * newlines, as field separators: Default Field Splitting. (line 6) @@ -33457,7 +33636,7 @@ Index (line 47) * nexti debugger command: Debugger Execution Control. (line 49) -* NF variable <1>: Auto-set. (line 105) +* NF variable <1>: Auto-set. (line 119) * NF variable: Fields. (line 33) * NF variable, decrementing: Changing Fields. (line 107) * ni debugger command (alias for nexti): Debugger Execution Control. @@ -33466,9 +33645,9 @@ Index * non-existent array elements: Reference to Elements. (line 23) * not Boolean-logic operator: Boolean Ops. (line 6) -* NR variable <1>: Auto-set. (line 125) +* NR variable <1>: Auto-set. (line 139) * NR variable: Records. (line 6) -* NR variable, changing: Auto-set. (line 314) +* NR variable, changing: Auto-set. (line 328) * null strings <1>: Basic Data Typing. (line 26) * null strings <2>: Truth Values. (line 6) * null strings <3>: Regexp Field Splitting. @@ -33582,7 +33761,7 @@ Index * p debugger command (alias for print): Viewing And Changing Data. (line 36) * Papadopoulos, Panos: Contributors. (line 128) -* parent process ID of gawk process: Auto-set. (line 189) +* parent process ID of gawk process: Auto-set. (line 203) * parentheses (), in a profile: Profiling. (line 146) * parentheses (), regexp operator: Regexp Operators. (line 81) * password file: Passwd Functions. (line 16) @@ -33624,14 +33803,14 @@ Index * plus sign (+), += operator: Assignment Ops. (line 82) * plus sign (+), regexp operator: Regexp Operators. (line 105) * pointers to functions: Indirect Calls. (line 6) -* portability: Escape Sequences. (line 100) +* portability: Escape Sequences. (line 103) * portability, #! (executable scripts): Executable Scripts. (line 33) * portability, ** operator and: Arithmetic Ops. (line 81) * portability, **= operator and: Assignment Ops. (line 143) * portability, ARGV variable: Executable Scripts. (line 59) * portability, backslash continuation and: Statements/Lines. (line 30) * portability, backslash in escape sequences: Escape Sequences. - (line 105) + (line 108) * portability, close() function and: Close Files And Pipes. (line 81) * portability, data files as single record: gawk split records. @@ -33649,7 +33828,7 @@ Index * portability, NF variable, decrementing: Changing Fields. (line 115) * portability, operators: Increment Ops. (line 60) * portability, operators, not in POSIX awk: Precedence. (line 98) -* portability, POSIXLY_CORRECT environment variable: Options. (line 361) +* portability, POSIXLY_CORRECT environment variable: Options. (line 359) * portability, substr() function: String Functions. (line 513) * portable object files <1>: Translator i18n. (line 6) * portable object files: Explaining gettext. (line 37) @@ -33670,7 +33849,7 @@ Index * POSIX awk, < operator and: Getline/File. (line 26) * POSIX awk, arithmetic operators and: Arithmetic Ops. (line 30) * POSIX awk, backslashes in string constants: Escape Sequences. - (line 105) + (line 108) * POSIX awk, BEGIN/END patterns: I/O And BEGIN/END. (line 16) * POSIX awk, bracket expressions and: Bracket Expressions. (line 26) * POSIX awk, bracket expressions and, character classes: Bracket Expressions. @@ -33697,11 +33876,11 @@ Index * POSIX awk, regular expressions and: Regexp Operators. (line 161) * POSIX awk, timestamps and: Time Functions. (line 6) * POSIX awk, | I/O operator and: Getline/Pipe. (line 55) -* POSIX mode: Options. (line 256) +* POSIX mode: Options. (line 254) * POSIX, awk and: Preface. (line 21) * POSIX, gawk extensions not included in: POSIX/GNU. (line 6) * POSIX, programs, implementing in awk: Clones. (line 6) -* POSIXLY_CORRECT environment variable: Options. (line 341) +* POSIXLY_CORRECT environment variable: Options. (line 339) * PREC variable: User-modified. (line 124) * precedence <1>: Precedence. (line 6) * precedence: Increment Ops. (line 60) @@ -33748,24 +33927,24 @@ Index * printing, unduplicated lines of text: Uniq Program. (line 6) * printing, user information: Id Program. (line 6) * private variables: Library Names. (line 11) -* process group idIDof gawk process: Auto-set. (line 183) -* process ID of gawk process: Auto-set. (line 186) +* process group idIDof gawk process: Auto-set. (line 197) +* process ID of gawk process: Auto-set. (line 200) * processes, two-way communications with: Two-way I/O. (line 6) * processing data: Basic High Level. (line 6) * PROCINFO array <1>: Passwd Functions. (line 6) * PROCINFO array <2>: Time Functions. (line 47) -* PROCINFO array: Auto-set. (line 130) +* PROCINFO array: Auto-set. (line 144) * PROCINFO array, and communications via ptys: Two-way I/O. (line 99) * PROCINFO array, and group membership: Group Functions. (line 6) * PROCINFO array, and user and group ID numbers: Id Program. (line 15) * PROCINFO array, testing the field splitting: Passwd Functions. (line 154) -* PROCINFO array, uses: Auto-set. (line 242) +* PROCINFO array, uses: Auto-set. (line 256) * PROCINFO, values of sorted_in: Controlling Scanning. (line 26) * profiling awk programs: Profiling. (line 6) -* profiling awk programs, dynamically: Profiling. (line 179) -* program identifiers: Auto-set. (line 148) +* profiling awk programs, dynamically: Profiling. (line 178) +* program identifiers: Auto-set. (line 162) * program, definition of: Getting Started. (line 21) * programming conventions, --non-decimal-data option: Nondecimal Data. (line 35) @@ -33800,7 +33979,7 @@ Index * QuikTrim Awk: Other Versions. (line 139) * quit debugger command: Miscellaneous Debugger Commands. (line 99) -* QUIT signal (MS-Windows): Profiling. (line 214) +* QUIT signal (MS-Windows): Profiling. (line 213) * quoting in gawk command lines: Long. (line 26) * quoting in gawk command lines, tricks for: Quoting. (line 91) * quoting, for small awk programs: Comments. (line 27) @@ -33809,12 +33988,12 @@ Index * Rakitzis, Byron: History Sorting. (line 25) * Ramey, Chet <1>: General Data Types. (line 6) * Ramey, Chet: Acknowledgments. (line 60) -* rand: Numeric Functions. (line 33) +* rand: Numeric Functions. (line 48) * random numbers, Cliff: Cliff Random Function. (line 6) * random numbers, rand()/srand() functions: Numeric Functions. - (line 33) -* random numbers, seed of: Numeric Functions. (line 63) + (line 48) +* random numbers, seed of: Numeric Functions. (line 78) * range expressions (regexps): Bracket Expressions. (line 6) * range patterns: Ranges. (line 6) * range patterns, line continuation and: Ranges. (line 65) @@ -33883,7 +34062,7 @@ Index (line 60) * regular expressions, gawk, command-line options: GNU Regexp Operators. (line 70) -* regular expressions, interval expressions and: Options. (line 281) +* regular expressions, interval expressions and: Options. (line 279) * regular expressions, leftmost longest match: Leftmost Longest. (line 6) * regular expressions, operators <1>: Regexp Operators. (line 6) @@ -33923,7 +34102,7 @@ Index * right shift: Bitwise Functions. (line 53) * right shift, bitwise: Bitwise Functions. (line 32) * Ritchie, Dennis: Basic Data Typing. (line 54) -* RLENGTH variable: Auto-set. (line 252) +* RLENGTH variable: Auto-set. (line 266) * RLENGTH variable, match() function and: String Functions. (line 228) * Robbins, Arnold <1>: Future Extensions. (line 6) * Robbins, Arnold <2>: Bugs. (line 70) @@ -33941,7 +34120,7 @@ Index * Robbins, Miriam <2>: Getline/Pipe. (line 39) * Robbins, Miriam: Acknowledgments. (line 94) * Rommel, Kai Uwe: Contributors. (line 42) -* round to nearest integer: Numeric Functions. (line 23) +* round to nearest integer: Numeric Functions. (line 38) * round() user-defined function: Round Function. (line 16) * rounding numbers: Round Function. (line 6) * ROUNDMODE variable: User-modified. (line 128) @@ -33949,9 +34128,9 @@ Index * RS variable: awk split records. (line 12) * RS variable, multiline records and: Multiple Line. (line 17) * rshift: Bitwise Functions. (line 53) -* RSTART variable: Auto-set. (line 258) +* RSTART variable: Auto-set. (line 272) * RSTART variable, match() function and: String Functions. (line 228) -* RT variable <1>: Auto-set. (line 265) +* RT variable <1>: Auto-set. (line 279) * RT variable <2>: Multiple Line. (line 129) * RT variable: awk split records. (line 125) * Rubin, Paul <1>: Contributors. (line 15) @@ -33964,14 +34143,14 @@ Index (line 68) * sample debugging session: Sample Debugging Session. (line 6) -* sandbox mode: Options. (line 288) +* sandbox mode: Options. (line 286) * save debugger options: Debugger Info. (line 85) * scalar or array: Type Functions. (line 11) * scalar values: Basic Data Typing. (line 13) * scanning arrays: Scanning an Array. (line 6) * scanning multidimensional arrays: Multiscanning. (line 11) * Schorr, Andrew <1>: Contributors. (line 133) -* Schorr, Andrew <2>: Auto-set. (line 297) +* Schorr, Andrew <2>: Auto-set. (line 311) * Schorr, Andrew: Acknowledgments. (line 60) * Schreiber, Bert: Acknowledgments. (line 38) * Schreiber, Rita: Acknowledgments. (line 38) @@ -33990,7 +34169,7 @@ Index * sed utility <1>: Glossary. (line 16) * sed utility <2>: Simple Sed. (line 6) * sed utility: Full Line Fields. (line 22) -* seeding random number generator: Numeric Functions. (line 63) +* seeding random number generator: Numeric Functions. (line 78) * semicolon (;), AWKPATH variable and: PC Using. (line 10) * semicolon (;), separating statements in actions <1>: Statements. (line 10) @@ -34051,14 +34230,14 @@ Index * sidebar, A Constant's Base Does Not Affect Its Value: Nondecimal-numbers. (line 64) * sidebar, Backslash Before Regular Characters: Escape Sequences. - (line 103) + (line 106) * sidebar, Changing FS Does Not Affect the Fields: Full Line Fields. (line 14) -* sidebar, Changing NR and FNR: Auto-set. (line 312) +* sidebar, Changing NR and FNR: Auto-set. (line 326) * sidebar, Controlling Output Buffering with system(): I/O Functions. (line 139) * sidebar, Escape Sequences for Metacharacters: Escape Sequences. - (line 134) + (line 137) * sidebar, FS and IGNORECASE: Field Splitting Summary. (line 38) * sidebar, Interactive Versus Noninteractive Buffering: I/O Functions. @@ -34080,19 +34259,19 @@ Index (line 58) * sidebar, Using close()'s Return Value: Close Files And Pipes. (line 131) -* SIGHUP signal, for dynamic profiling: Profiling. (line 211) -* SIGINT signal (MS-Windows): Profiling. (line 214) -* signals, HUP/SIGHUP, for profiling: Profiling. (line 211) -* signals, INT/SIGINT (MS-Windows): Profiling. (line 214) -* signals, QUIT/SIGQUIT (MS-Windows): Profiling. (line 214) -* signals, USR1/SIGUSR1, for profiling: Profiling. (line 188) +* SIGHUP signal, for dynamic profiling: Profiling. (line 210) +* SIGINT signal (MS-Windows): Profiling. (line 213) +* signals, HUP/SIGHUP, for profiling: Profiling. (line 210) +* signals, INT/SIGINT (MS-Windows): Profiling. (line 213) +* signals, QUIT/SIGQUIT (MS-Windows): Profiling. (line 213) +* signals, USR1/SIGUSR1, for profiling: Profiling. (line 187) * signature program: Signature Program. (line 6) -* SIGQUIT signal (MS-Windows): Profiling. (line 214) -* SIGUSR1 signal, for dynamic profiling: Profiling. (line 188) +* SIGQUIT signal (MS-Windows): Profiling. (line 213) +* SIGUSR1 signal, for dynamic profiling: Profiling. (line 187) * silent debugger command: Debugger Execution Control. (line 10) -* sin: Numeric Functions. (line 74) -* sine: Numeric Functions. (line 74) +* sin: Numeric Functions. (line 89) +* sine: Numeric Functions. (line 89) * single quote ('): One-shot. (line 15) * single quote (') in gawk command lines: Long. (line 35) * single quote ('), in shell commands: Quoting. (line 48) @@ -34142,10 +34321,10 @@ Index * sprintf() function, OFMT variable and: User-modified. (line 114) * sprintf() function, print/printf statements and: Round Function. (line 6) -* sqrt: Numeric Functions. (line 77) +* sqrt: Numeric Functions. (line 92) * square brackets ([]), regexp operator: Regexp Operators. (line 56) -* square root: Numeric Functions. (line 77) -* srand: Numeric Functions. (line 81) +* square root: Numeric Functions. (line 92) +* srand: Numeric Functions. (line 96) * stack frame: Debugging Terms. (line 10) * Stallman, Richard <1>: Glossary. (line 375) * Stallman, Richard <2>: Contributors. (line 23) @@ -34216,9 +34395,9 @@ Index * substr: String Functions. (line 482) * substring: String Functions. (line 482) * Sumner, Andrew: Other Versions. (line 68) -* supplementary groups of gawk process: Auto-set. (line 237) +* supplementary groups of gawk process: Auto-set. (line 251) * switch statement: Switch Statement. (line 6) -* SYMTAB array: Auto-set. (line 269) +* SYMTAB array: Auto-set. (line 283) * syntactic ambiguity: /= operator vs. /=.../ regexp constant: Assignment Ops. (line 148) * system: I/O Functions. (line 107) @@ -34285,7 +34464,7 @@ Index (line 37) * troubleshooting, awk uses FS not IFS: Field Separators. (line 30) * troubleshooting, backslash before nonspecial character: Escape Sequences. - (line 105) + (line 108) * troubleshooting, division: Arithmetic Ops. (line 44) * troubleshooting, fatal errors, field widths, specifying: Constant Size. (line 22) @@ -34341,7 +34520,7 @@ Index * uniq.awk program: Uniq Program. (line 65) * Unix: Glossary. (line 753) * Unix awk, backslashes in escape sequences: Escape Sequences. - (line 117) + (line 120) * Unix awk, close() function and: Close Files And Pipes. (line 133) * Unix awk, password files, field separators and: Command Line Field Separator. @@ -34361,7 +34540,7 @@ Index * user-modifiable variables: User-modified. (line 6) * users, information about, printing: Id Program. (line 6) * users, information about, retrieving: Passwd Functions. (line 16) -* USR1 signal, for dynamic profiling: Profiling. (line 188) +* USR1 signal, for dynamic profiling: Profiling. (line 187) * values, numeric: Basic Data Typing. (line 13) * values, string: Basic Data Typing. (line 13) * variable assignments and input files: Other Arguments. (line 26) @@ -34395,10 +34574,10 @@ Index * variables, uninitialized, as array subscripts: Uninitialized Subscripts. (line 6) * variables, user-defined: Variables. (line 6) -* version of gawk: Auto-set. (line 207) -* version of gawk extension API: Auto-set. (line 232) -* version of GNU MP library: Auto-set. (line 218) -* version of GNU MPFR library: Auto-set. (line 214) +* version of gawk: Auto-set. (line 221) +* version of gawk extension API: Auto-set. (line 246) +* version of GNU MP library: Auto-set. (line 232) +* version of GNU MPFR library: Auto-set. (line 228) * vertical bar (|): Regexp Operators. (line 70) * vertical bar (|), | operator (I/O) <1>: Precedence. (line 65) * vertical bar (|), | operator (I/O): Getline/Pipe. (line 9) @@ -34435,7 +34614,7 @@ Index * whitespace, as field separators: Default Field Splitting. (line 6) * whitespace, functions, calling: Calling Built-in. (line 10) -* whitespace, newlines as: Options. (line 262) +* whitespace, newlines as: Options. (line 260) * Williams, Kent: Contributors. (line 34) * Woehlke, Matthew: Contributors. (line 79) * Woods, John: Contributors. (line 27) @@ -34488,559 +34667,560 @@ Index Tag Table: Node: Top1204 -Node: Foreword342156 -Node: Foreword446600 -Node: Preface48131 -Ref: Preface-Footnote-151002 -Ref: Preface-Footnote-251109 -Ref: Preface-Footnote-351342 -Node: History51484 -Node: Names53835 -Ref: Names-Footnote-154928 -Node: This Manual55074 -Ref: This Manual-Footnote-161574 -Node: Conventions61674 -Node: Manual History64011 -Ref: Manual History-Footnote-167004 -Ref: Manual History-Footnote-267045 -Node: How To Contribute67119 -Node: Acknowledgments68248 -Node: Getting Started73114 -Node: Running gawk75553 -Node: One-shot76743 -Node: Read Terminal78007 -Node: Long80038 -Node: Executable Scripts81551 -Ref: Executable Scripts-Footnote-184340 -Node: Comments84443 -Node: Quoting86925 -Node: DOS Quoting92443 -Node: Sample Data Files93118 -Node: Very Simple95713 -Node: Two Rules100612 -Node: More Complex102498 -Node: Statements/Lines105360 -Ref: Statements/Lines-Footnote-1109815 -Node: Other Features110080 -Node: When111016 -Ref: When-Footnote-1112770 -Node: Intro Summary112835 -Node: Invoking Gawk113719 -Node: Command Line115233 -Node: Options116031 -Ref: Options-Footnote-1131953 -Ref: Options-Footnote-2132182 -Node: Other Arguments132207 -Node: Naming Standard Input135155 -Node: Environment Variables136248 -Node: AWKPATH Variable136806 -Ref: AWKPATH Variable-Footnote-1140103 -Ref: AWKPATH Variable-Footnote-2140148 -Node: AWKLIBPATH Variable140408 -Node: Other Environment Variables141551 -Node: Exit Status145309 -Node: Include Files145985 -Node: Loading Shared Libraries149574 -Node: Obsolete151001 -Node: Undocumented151693 -Node: Invoking Summary151960 -Node: Regexp153623 -Node: Regexp Usage155077 -Node: Escape Sequences157114 -Node: Regexp Operators163124 -Ref: Regexp Operators-Footnote-1170534 -Ref: Regexp Operators-Footnote-2170681 -Node: Bracket Expressions170779 -Ref: table-char-classes172794 -Node: Leftmost Longest175736 -Node: Computed Regexps177038 -Node: GNU Regexp Operators180467 -Node: Case-sensitivity184139 -Ref: Case-sensitivity-Footnote-1187024 -Ref: Case-sensitivity-Footnote-2187259 -Node: Regexp Summary187367 -Node: Reading Files188834 -Node: Records190927 -Node: awk split records191660 -Node: gawk split records196589 -Ref: gawk split records-Footnote-1201128 -Node: Fields201165 -Ref: Fields-Footnote-1203943 -Node: Nonconstant Fields204029 -Ref: Nonconstant Fields-Footnote-1206267 -Node: Changing Fields206470 -Node: Field Separators212401 -Node: Default Field Splitting215105 -Node: Regexp Field Splitting216222 -Node: Single Character Fields219572 -Node: Command Line Field Separator220631 -Node: Full Line Fields223848 -Ref: Full Line Fields-Footnote-1225369 -Ref: Full Line Fields-Footnote-2225415 -Node: Field Splitting Summary225516 -Node: Constant Size227590 -Node: Splitting By Content232173 -Ref: Splitting By Content-Footnote-1236138 -Node: Multiple Line236301 -Ref: Multiple Line-Footnote-1242182 -Node: Getline242361 -Node: Plain Getline244568 -Node: Getline/Variable247208 -Node: Getline/File248357 -Node: Getline/Variable/File249742 -Ref: Getline/Variable/File-Footnote-1251345 -Node: Getline/Pipe251432 -Node: Getline/Variable/Pipe254110 -Node: Getline/Coprocess255241 -Node: Getline/Variable/Coprocess256505 -Node: Getline Notes257244 -Node: Getline Summary260038 -Ref: table-getline-variants260450 -Node: Read Timeout261279 -Ref: Read Timeout-Footnote-1265116 -Node: Command-line directories265174 -Node: Input Summary266079 -Node: Input Exercises269464 -Node: Printing270192 -Node: Print271969 -Node: Print Examples273426 -Node: Output Separators276205 -Node: OFMT278223 -Node: Printf279578 -Node: Basic Printf280363 -Node: Control Letters281935 -Node: Format Modifiers285920 -Node: Printf Examples291930 -Node: Redirection294416 -Node: Special FD301254 -Ref: Special FD-Footnote-1304420 -Node: Special Files304494 -Node: Other Inherited Files305111 -Node: Special Network306111 -Node: Special Caveats306973 -Node: Close Files And Pipes307922 -Ref: Close Files And Pipes-Footnote-1315113 -Ref: Close Files And Pipes-Footnote-2315261 -Node: Output Summary315411 -Node: Output Exercises316409 -Node: Expressions317089 -Node: Values318278 -Node: Constants318955 -Node: Scalar Constants319646 -Ref: Scalar Constants-Footnote-1320508 -Node: Nondecimal-numbers320758 -Node: Regexp Constants323768 -Node: Using Constant Regexps324294 -Node: Variables327457 -Node: Using Variables328114 -Node: Assignment Options330025 -Node: Conversion331900 -Node: Strings And Numbers332424 -Ref: Strings And Numbers-Footnote-1335489 -Node: Locale influences conversions335598 -Ref: table-locale-affects338344 -Node: All Operators338936 -Node: Arithmetic Ops339565 -Node: Concatenation342070 -Ref: Concatenation-Footnote-1344889 -Node: Assignment Ops344996 -Ref: table-assign-ops349975 -Node: Increment Ops351285 -Node: Truth Values and Conditions354716 -Node: Truth Values355799 -Node: Typing and Comparison356848 -Node: Variable Typing357664 -Node: Comparison Operators361331 -Ref: table-relational-ops361741 -Node: POSIX String Comparison365236 -Ref: POSIX String Comparison-Footnote-1366308 -Node: Boolean Ops366447 -Ref: Boolean Ops-Footnote-1370925 -Node: Conditional Exp371016 -Node: Function Calls372754 -Node: Precedence376634 -Node: Locales380294 -Node: Expressions Summary381926 -Node: Patterns and Actions384497 -Node: Pattern Overview385617 -Node: Regexp Patterns387296 -Node: Expression Patterns387839 -Node: Ranges391619 -Node: BEGIN/END394726 -Node: Using BEGIN/END395487 -Ref: Using BEGIN/END-Footnote-1398223 -Node: I/O And BEGIN/END398329 -Node: BEGINFILE/ENDFILE400644 -Node: Empty403541 -Node: Using Shell Variables403858 -Node: Action Overview406131 -Node: Statements408457 -Node: If Statement410305 -Node: While Statement411800 -Node: Do Statement413828 -Node: For Statement414976 -Node: Switch Statement418134 -Node: Break Statement420516 -Node: Continue Statement422557 -Node: Next Statement424384 -Node: Nextfile Statement426765 -Node: Exit Statement429393 -Node: Built-in Variables431804 -Node: User-modified432937 -Ref: User-modified-Footnote-1440640 -Node: Auto-set440702 -Ref: Auto-set-Footnote-1453754 -Ref: Auto-set-Footnote-2453959 -Node: ARGC and ARGV454015 -Node: Pattern Action Summary458233 -Node: Arrays460666 -Node: Array Basics461995 -Node: Array Intro462839 -Ref: figure-array-elements464773 -Ref: Array Intro-Footnote-1467393 -Node: Reference to Elements467521 -Node: Assigning Elements469983 -Node: Array Example470474 -Node: Scanning an Array472233 -Node: Controlling Scanning475253 -Ref: Controlling Scanning-Footnote-1480647 -Node: Numeric Array Subscripts480963 -Node: Uninitialized Subscripts483148 -Node: Delete484765 -Ref: Delete-Footnote-1487514 -Node: Multidimensional487571 -Node: Multiscanning490668 -Node: Arrays of Arrays492257 -Node: Arrays Summary497011 -Node: Functions499102 -Node: Built-in500141 -Node: Calling Built-in501219 -Node: Numeric Functions503214 -Ref: Numeric Functions-Footnote-1507230 -Ref: Numeric Functions-Footnote-2507587 -Ref: Numeric Functions-Footnote-3507635 -Node: String Functions507907 -Ref: String Functions-Footnote-1531408 -Ref: String Functions-Footnote-2531537 -Ref: String Functions-Footnote-3531785 -Node: Gory Details531872 -Ref: table-sub-escapes533653 -Ref: table-sub-proposed535168 -Ref: table-posix-sub536530 -Ref: table-gensub-escapes538067 -Ref: Gory Details-Footnote-1538900 -Node: I/O Functions539051 -Ref: I/O Functions-Footnote-1546287 -Node: Time Functions546434 -Ref: Time Functions-Footnote-1556943 -Ref: Time Functions-Footnote-2557011 -Ref: Time Functions-Footnote-3557169 -Ref: Time Functions-Footnote-4557280 -Ref: Time Functions-Footnote-5557392 -Ref: Time Functions-Footnote-6557619 -Node: Bitwise Functions557885 -Ref: table-bitwise-ops558447 -Ref: Bitwise Functions-Footnote-1562775 -Node: Type Functions562947 -Node: I18N Functions564099 -Node: User-defined565746 -Node: Definition Syntax566551 -Ref: Definition Syntax-Footnote-1572210 -Node: Function Example572281 -Ref: Function Example-Footnote-1575202 -Node: Function Caveats575224 -Node: Calling A Function575742 -Node: Variable Scope576700 -Node: Pass By Value/Reference579693 -Node: Return Statement583190 -Node: Dynamic Typing586169 -Node: Indirect Calls587098 -Ref: Indirect Calls-Footnote-1598404 -Node: Functions Summary598532 -Node: Library Functions601234 -Ref: Library Functions-Footnote-1604842 -Ref: Library Functions-Footnote-2604985 -Node: Library Names605156 -Ref: Library Names-Footnote-1608614 -Ref: Library Names-Footnote-2608837 -Node: General Functions608923 -Node: Strtonum Function610026 -Node: Assert Function613048 -Node: Round Function616372 -Node: Cliff Random Function617913 -Node: Ordinal Functions618929 -Ref: Ordinal Functions-Footnote-1621992 -Ref: Ordinal Functions-Footnote-2622244 -Node: Join Function622455 -Ref: Join Function-Footnote-1624225 -Node: Getlocaltime Function624425 -Node: Readfile Function628169 -Node: Shell Quoting630141 -Node: Data File Management631542 -Node: Filetrans Function632174 -Node: Rewind Function636270 -Node: File Checking637656 -Ref: File Checking-Footnote-1638989 -Node: Empty Files639190 -Node: Ignoring Assigns641169 -Node: Getopt Function642719 -Ref: Getopt Function-Footnote-1654183 -Node: Passwd Functions654383 -Ref: Passwd Functions-Footnote-1663223 -Node: Group Functions663311 -Ref: Group Functions-Footnote-1671208 -Node: Walking Arrays671413 -Node: Library Functions Summary673013 -Node: Library Exercises674417 -Node: Sample Programs675697 -Node: Running Examples676467 -Node: Clones677195 -Node: Cut Program678419 -Node: Egrep Program688139 -Ref: Egrep Program-Footnote-1695642 -Node: Id Program695752 -Node: Split Program699428 -Ref: Split Program-Footnote-1702882 -Node: Tee Program703010 -Node: Uniq Program705799 -Node: Wc Program713218 -Ref: Wc Program-Footnote-1717468 -Node: Miscellaneous Programs717562 -Node: Dupword Program718775 -Node: Alarm Program720806 -Node: Translate Program725611 -Ref: Translate Program-Footnote-1730174 -Node: Labels Program730444 -Ref: Labels Program-Footnote-1733795 -Node: Word Sorting733879 -Node: History Sorting737949 -Node: Extract Program739784 -Node: Simple Sed747308 -Node: Igawk Program750378 -Ref: Igawk Program-Footnote-1764704 -Ref: Igawk Program-Footnote-2764905 -Ref: Igawk Program-Footnote-3765027 -Node: Anagram Program765142 -Node: Signature Program768203 -Node: Programs Summary769450 -Node: Programs Exercises770671 -Ref: Programs Exercises-Footnote-1774802 -Node: Advanced Features774893 -Node: Nondecimal Data776875 -Node: Array Sorting778465 -Node: Controlling Array Traversal779165 -Ref: Controlling Array Traversal-Footnote-1787531 -Node: Array Sorting Functions787649 -Ref: Array Sorting Functions-Footnote-1791535 -Node: Two-way I/O791731 -Ref: Two-way I/O-Footnote-1796676 -Ref: Two-way I/O-Footnote-2796862 -Node: TCP/IP Networking796944 -Node: Profiling799816 -Node: Advanced Features Summary807357 -Node: Internationalization809290 -Node: I18N and L10N810770 -Node: Explaining gettext811456 -Ref: Explaining gettext-Footnote-1816481 -Ref: Explaining gettext-Footnote-2816665 -Node: Programmer i18n816830 -Ref: Programmer i18n-Footnote-1821706 -Node: Translator i18n821755 -Node: String Extraction822549 -Ref: String Extraction-Footnote-1823680 -Node: Printf Ordering823766 -Ref: Printf Ordering-Footnote-1826552 -Node: I18N Portability826616 -Ref: I18N Portability-Footnote-1829072 -Node: I18N Example829135 -Ref: I18N Example-Footnote-1831938 -Node: Gawk I18N832010 -Node: I18N Summary832654 -Node: Debugger833994 -Node: Debugging835016 -Node: Debugging Concepts835457 -Node: Debugging Terms837267 -Node: Awk Debugging839839 -Node: Sample Debugging Session840745 -Node: Debugger Invocation841279 -Node: Finding The Bug842664 -Node: List of Debugger Commands849143 -Node: Breakpoint Control850475 -Node: Debugger Execution Control854152 -Node: Viewing And Changing Data857511 -Node: Execution Stack860887 -Node: Debugger Info862522 -Node: Miscellaneous Debugger Commands866567 -Node: Readline Support871568 -Node: Limitations872462 -Node: Debugging Summary874577 -Node: Arbitrary Precision Arithmetic875751 -Node: Computer Arithmetic877167 -Ref: table-numeric-ranges880766 -Ref: Computer Arithmetic-Footnote-1881290 -Node: Math Definitions881347 -Ref: table-ieee-formats884642 -Ref: Math Definitions-Footnote-1885246 -Node: MPFR features885351 -Node: FP Math Caution887022 -Ref: FP Math Caution-Footnote-1888072 -Node: Inexactness of computations888441 -Node: Inexact representation889400 -Node: Comparing FP Values890758 -Node: Errors accumulate891840 -Node: Getting Accuracy893272 -Node: Try To Round895976 -Node: Setting precision896875 -Ref: table-predefined-precision-strings897559 -Node: Setting the rounding mode899388 -Ref: table-gawk-rounding-modes899752 -Ref: Setting the rounding mode-Footnote-1903204 -Node: Arbitrary Precision Integers903383 -Ref: Arbitrary Precision Integers-Footnote-1906367 -Node: POSIX Floating Point Problems906516 -Ref: POSIX Floating Point Problems-Footnote-1910395 -Node: Floating point summary910433 -Node: Dynamic Extensions912629 -Node: Extension Intro914181 -Node: Plugin License915446 -Node: Extension Mechanism Outline916243 -Ref: figure-load-extension916671 -Ref: figure-register-new-function918151 -Ref: figure-call-new-function919155 -Node: Extension API Description921142 -Node: Extension API Functions Introduction922592 -Node: General Data Types927413 -Ref: General Data Types-Footnote-1933313 -Node: Memory Allocation Functions933612 -Ref: Memory Allocation Functions-Footnote-1936451 -Node: Constructor Functions936550 -Node: Registration Functions938285 -Node: Extension Functions938970 -Node: Exit Callback Functions941267 -Node: Extension Version String942515 -Node: Input Parsers943178 -Node: Output Wrappers953053 -Node: Two-way processors957566 -Node: Printing Messages959829 -Ref: Printing Messages-Footnote-1960905 -Node: Updating `ERRNO'961057 -Node: Requesting Values961797 -Ref: table-value-types-returned962524 -Node: Accessing Parameters963481 -Node: Symbol Table Access964715 -Node: Symbol table by name965229 -Node: Symbol table by cookie967249 -Ref: Symbol table by cookie-Footnote-1971394 -Node: Cached values971457 -Ref: Cached values-Footnote-1974953 -Node: Array Manipulation975044 -Ref: Array Manipulation-Footnote-1976142 -Node: Array Data Types976179 -Ref: Array Data Types-Footnote-1978834 -Node: Array Functions978926 -Node: Flattening Arrays982785 -Node: Creating Arrays989687 -Node: Extension API Variables994458 -Node: Extension Versioning995094 -Node: Extension API Informational Variables996985 -Node: Extension API Boilerplate998050 -Node: Finding Extensions1001859 -Node: Extension Example1002419 -Node: Internal File Description1003191 -Node: Internal File Ops1007258 -Ref: Internal File Ops-Footnote-11019009 -Node: Using Internal File Ops1019149 -Ref: Using Internal File Ops-Footnote-11021532 -Node: Extension Samples1021805 -Node: Extension Sample File Functions1023333 -Node: Extension Sample Fnmatch1031014 -Node: Extension Sample Fork1032502 -Node: Extension Sample Inplace1033717 -Node: Extension Sample Ord1035393 -Node: Extension Sample Readdir1036229 -Ref: table-readdir-file-types1037106 -Node: Extension Sample Revout1037917 -Node: Extension Sample Rev2way1038506 -Node: Extension Sample Read write array1039246 -Node: Extension Sample Readfile1041186 -Node: Extension Sample Time1042281 -Node: Extension Sample API Tests1043629 -Node: gawkextlib1044120 -Node: Extension summary1046798 -Node: Extension Exercises1050487 -Node: Language History1051209 -Node: V7/SVR3.11052865 -Node: SVR41055046 -Node: POSIX1056491 -Node: BTL1057880 -Node: POSIX/GNU1058614 -Node: Feature History1064178 -Node: Common Extensions1077276 -Node: Ranges and Locales1078600 -Ref: Ranges and Locales-Footnote-11083218 -Ref: Ranges and Locales-Footnote-21083245 -Ref: Ranges and Locales-Footnote-31083479 -Node: Contributors1083700 -Node: History summary1089241 -Node: Installation1090611 -Node: Gawk Distribution1091557 -Node: Getting1092041 -Node: Extracting1092864 -Node: Distribution contents1094499 -Node: Unix Installation1100216 -Node: Quick Installation1100833 -Node: Additional Configuration Options1103257 -Node: Configuration Philosophy1104995 -Node: Non-Unix Installation1107364 -Node: PC Installation1107822 -Node: PC Binary Installation1109141 -Node: PC Compiling1110989 -Ref: PC Compiling-Footnote-11114010 -Node: PC Testing1114119 -Node: PC Using1115295 -Node: Cygwin1119410 -Node: MSYS1120233 -Node: VMS Installation1120733 -Node: VMS Compilation1121525 -Ref: VMS Compilation-Footnote-11122747 -Node: VMS Dynamic Extensions1122805 -Node: VMS Installation Details1124489 -Node: VMS Running1126741 -Node: VMS GNV1129577 -Node: VMS Old Gawk1130311 -Node: Bugs1130781 -Node: Other Versions1134664 -Node: Installation summary1141088 -Node: Notes1142144 -Node: Compatibility Mode1143009 -Node: Additions1143791 -Node: Accessing The Source1144716 -Node: Adding Code1146151 -Node: New Ports1152308 -Node: Derived Files1156790 -Ref: Derived Files-Footnote-11162265 -Ref: Derived Files-Footnote-21162299 -Ref: Derived Files-Footnote-31162895 -Node: Future Extensions1163009 -Node: Implementation Limitations1163615 -Node: Extension Design1164863 -Node: Old Extension Problems1166017 -Ref: Old Extension Problems-Footnote-11167534 -Node: Extension New Mechanism Goals1167591 -Ref: Extension New Mechanism Goals-Footnote-11170951 -Node: Extension Other Design Decisions1171140 -Node: Extension Future Growth1173248 -Node: Old Extension Mechanism1174084 -Node: Notes summary1175846 -Node: Basic Concepts1177032 -Node: Basic High Level1177713 -Ref: figure-general-flow1177985 -Ref: figure-process-flow1178584 -Ref: Basic High Level-Footnote-11181813 -Node: Basic Data Typing1181998 -Node: Glossary1185326 -Node: Copying1217255 -Node: GNU Free Documentation License1254811 -Node: Index1279947 +Node: Foreword342225 +Node: Foreword446669 +Node: Preface48200 +Ref: Preface-Footnote-151071 +Ref: Preface-Footnote-251178 +Ref: Preface-Footnote-351411 +Node: History51553 +Node: Names53904 +Ref: Names-Footnote-154997 +Node: This Manual55143 +Ref: This Manual-Footnote-161643 +Node: Conventions61743 +Node: Manual History64080 +Ref: Manual History-Footnote-167073 +Ref: Manual History-Footnote-267114 +Node: How To Contribute67188 +Node: Acknowledgments68317 +Node: Getting Started73183 +Node: Running gawk75622 +Node: One-shot76812 +Node: Read Terminal78076 +Node: Long80107 +Node: Executable Scripts81620 +Ref: Executable Scripts-Footnote-184409 +Node: Comments84512 +Node: Quoting86994 +Node: DOS Quoting92512 +Node: Sample Data Files93187 +Node: Very Simple95782 +Node: Two Rules100681 +Node: More Complex102567 +Node: Statements/Lines105429 +Ref: Statements/Lines-Footnote-1109884 +Node: Other Features110149 +Node: When111085 +Ref: When-Footnote-1112839 +Node: Intro Summary112904 +Node: Invoking Gawk113788 +Node: Command Line115302 +Node: Options116100 +Ref: Options-Footnote-1131895 +Ref: Options-Footnote-2132124 +Node: Other Arguments132149 +Node: Naming Standard Input135097 +Node: Environment Variables136190 +Node: AWKPATH Variable136748 +Ref: AWKPATH Variable-Footnote-1140155 +Ref: AWKPATH Variable-Footnote-2140200 +Node: AWKLIBPATH Variable140460 +Node: Other Environment Variables141716 +Node: Exit Status145234 +Node: Include Files145910 +Node: Loading Shared Libraries149499 +Node: Obsolete150926 +Node: Undocumented151618 +Node: Invoking Summary151885 +Node: Regexp153548 +Node: Regexp Usage155002 +Node: Escape Sequences157039 +Node: Regexp Operators163268 +Ref: Regexp Operators-Footnote-1170678 +Ref: Regexp Operators-Footnote-2170825 +Node: Bracket Expressions170923 +Ref: table-char-classes172938 +Node: Leftmost Longest175880 +Node: Computed Regexps177182 +Node: GNU Regexp Operators180611 +Node: Case-sensitivity184283 +Ref: Case-sensitivity-Footnote-1187168 +Ref: Case-sensitivity-Footnote-2187403 +Node: Regexp Summary187511 +Node: Reading Files188978 +Node: Records191071 +Node: awk split records191804 +Node: gawk split records196733 +Ref: gawk split records-Footnote-1201272 +Node: Fields201309 +Ref: Fields-Footnote-1204087 +Node: Nonconstant Fields204173 +Ref: Nonconstant Fields-Footnote-1206411 +Node: Changing Fields206614 +Node: Field Separators212545 +Node: Default Field Splitting215249 +Node: Regexp Field Splitting216366 +Node: Single Character Fields219716 +Node: Command Line Field Separator220775 +Node: Full Line Fields223992 +Ref: Full Line Fields-Footnote-1225513 +Ref: Full Line Fields-Footnote-2225559 +Node: Field Splitting Summary225660 +Node: Constant Size227734 +Node: Splitting By Content232317 +Ref: Splitting By Content-Footnote-1236282 +Node: Multiple Line236445 +Ref: Multiple Line-Footnote-1242326 +Node: Getline242505 +Node: Plain Getline244712 +Node: Getline/Variable247352 +Node: Getline/File248501 +Node: Getline/Variable/File249886 +Ref: Getline/Variable/File-Footnote-1251489 +Node: Getline/Pipe251576 +Node: Getline/Variable/Pipe254254 +Node: Getline/Coprocess255385 +Node: Getline/Variable/Coprocess256649 +Node: Getline Notes257388 +Node: Getline Summary260182 +Ref: table-getline-variants260594 +Node: Read Timeout261423 +Ref: Read Timeout-Footnote-1265260 +Node: Command-line directories265318 +Node: Input Summary266223 +Node: Input Exercises269608 +Node: Printing270336 +Node: Print272113 +Node: Print Examples273570 +Node: Output Separators276349 +Node: OFMT278367 +Node: Printf279722 +Node: Basic Printf280507 +Node: Control Letters282079 +Node: Format Modifiers286064 +Node: Printf Examples292074 +Node: Redirection294560 +Node: Special FD301398 +Ref: Special FD-Footnote-1304564 +Node: Special Files304638 +Node: Other Inherited Files305255 +Node: Special Network306255 +Node: Special Caveats307117 +Node: Close Files And Pipes308066 +Ref: Close Files And Pipes-Footnote-1315257 +Ref: Close Files And Pipes-Footnote-2315405 +Node: Output Summary315555 +Node: Output Exercises316553 +Node: Expressions317233 +Node: Values318422 +Node: Constants319099 +Node: Scalar Constants319790 +Ref: Scalar Constants-Footnote-1320652 +Node: Nondecimal-numbers320902 +Node: Regexp Constants323912 +Node: Using Constant Regexps324438 +Node: Variables327601 +Node: Using Variables328258 +Node: Assignment Options330169 +Node: Conversion332044 +Node: Strings And Numbers332568 +Ref: Strings And Numbers-Footnote-1335633 +Node: Locale influences conversions335742 +Ref: table-locale-affects338488 +Node: All Operators339080 +Node: Arithmetic Ops339709 +Node: Concatenation342214 +Ref: Concatenation-Footnote-1345033 +Node: Assignment Ops345140 +Ref: table-assign-ops350119 +Node: Increment Ops351429 +Node: Truth Values and Conditions354860 +Node: Truth Values355943 +Node: Typing and Comparison356992 +Node: Variable Typing357808 +Node: Comparison Operators361475 +Ref: table-relational-ops361885 +Node: POSIX String Comparison365380 +Ref: POSIX String Comparison-Footnote-1366452 +Node: Boolean Ops366591 +Ref: Boolean Ops-Footnote-1371069 +Node: Conditional Exp371160 +Node: Function Calls372898 +Node: Precedence376778 +Node: Locales380438 +Node: Expressions Summary382070 +Node: Patterns and Actions384641 +Node: Pattern Overview385761 +Node: Regexp Patterns387440 +Node: Expression Patterns387983 +Node: Ranges391763 +Node: BEGIN/END394870 +Node: Using BEGIN/END395631 +Ref: Using BEGIN/END-Footnote-1398367 +Node: I/O And BEGIN/END398473 +Node: BEGINFILE/ENDFILE400788 +Node: Empty403685 +Node: Using Shell Variables404002 +Node: Action Overview406275 +Node: Statements408601 +Node: If Statement410449 +Node: While Statement411944 +Node: Do Statement413972 +Node: For Statement415120 +Node: Switch Statement418278 +Node: Break Statement420660 +Node: Continue Statement422701 +Node: Next Statement424528 +Node: Nextfile Statement426909 +Node: Exit Statement429537 +Node: Built-in Variables431948 +Node: User-modified433081 +Ref: User-modified-Footnote-1440784 +Node: Auto-set440846 +Ref: Auto-set-Footnote-1454555 +Ref: Auto-set-Footnote-2454760 +Node: ARGC and ARGV454816 +Node: Pattern Action Summary459034 +Node: Arrays461467 +Node: Array Basics462796 +Node: Array Intro463640 +Ref: figure-array-elements465574 +Ref: Array Intro-Footnote-1468194 +Node: Reference to Elements468322 +Node: Assigning Elements470784 +Node: Array Example471275 +Node: Scanning an Array473034 +Node: Controlling Scanning476054 +Ref: Controlling Scanning-Footnote-1481448 +Node: Numeric Array Subscripts481764 +Node: Uninitialized Subscripts483949 +Node: Delete485566 +Ref: Delete-Footnote-1488315 +Node: Multidimensional488372 +Node: Multiscanning491469 +Node: Arrays of Arrays493058 +Node: Arrays Summary497812 +Node: Functions499903 +Node: Built-in500942 +Node: Calling Built-in502020 +Node: Numeric Functions504015 +Ref: Numeric Functions-Footnote-1508833 +Ref: Numeric Functions-Footnote-2509190 +Ref: Numeric Functions-Footnote-3509238 +Node: String Functions509510 +Ref: String Functions-Footnote-1533011 +Ref: String Functions-Footnote-2533140 +Ref: String Functions-Footnote-3533388 +Node: Gory Details533475 +Ref: table-sub-escapes535256 +Ref: table-sub-proposed536771 +Ref: table-posix-sub538133 +Ref: table-gensub-escapes539670 +Ref: Gory Details-Footnote-1540503 +Node: I/O Functions540654 +Ref: I/O Functions-Footnote-1547890 +Node: Time Functions548037 +Ref: Time Functions-Footnote-1558546 +Ref: Time Functions-Footnote-2558614 +Ref: Time Functions-Footnote-3558772 +Ref: Time Functions-Footnote-4558883 +Ref: Time Functions-Footnote-5558995 +Ref: Time Functions-Footnote-6559222 +Node: Bitwise Functions559488 +Ref: table-bitwise-ops560050 +Ref: Bitwise Functions-Footnote-1564378 +Node: Type Functions564550 +Node: I18N Functions565702 +Node: User-defined567349 +Node: Definition Syntax568154 +Ref: Definition Syntax-Footnote-1573813 +Node: Function Example573884 +Ref: Function Example-Footnote-1576805 +Node: Function Caveats576827 +Node: Calling A Function577345 +Node: Variable Scope578303 +Node: Pass By Value/Reference581296 +Node: Return Statement584793 +Node: Dynamic Typing587772 +Node: Indirect Calls588701 +Ref: Indirect Calls-Footnote-1600007 +Node: Functions Summary600135 +Node: Library Functions602837 +Ref: Library Functions-Footnote-1606445 +Ref: Library Functions-Footnote-2606588 +Node: Library Names606759 +Ref: Library Names-Footnote-1610217 +Ref: Library Names-Footnote-2610440 +Node: General Functions610526 +Node: Strtonum Function611629 +Node: Assert Function614651 +Node: Round Function617975 +Node: Cliff Random Function619516 +Node: Ordinal Functions620532 +Ref: Ordinal Functions-Footnote-1623595 +Ref: Ordinal Functions-Footnote-2623847 +Node: Join Function624058 +Ref: Join Function-Footnote-1625828 +Node: Getlocaltime Function626028 +Node: Readfile Function629772 +Node: Shell Quoting631744 +Node: Data File Management633145 +Node: Filetrans Function633777 +Node: Rewind Function637873 +Node: File Checking639259 +Ref: File Checking-Footnote-1640592 +Node: Empty Files640793 +Node: Ignoring Assigns642772 +Node: Getopt Function644322 +Ref: Getopt Function-Footnote-1655786 +Node: Passwd Functions655986 +Ref: Passwd Functions-Footnote-1664826 +Node: Group Functions664914 +Ref: Group Functions-Footnote-1672811 +Node: Walking Arrays673016 +Node: Library Functions Summary674616 +Node: Library Exercises676020 +Node: Sample Programs677300 +Node: Running Examples678070 +Node: Clones678798 +Node: Cut Program680022 +Node: Egrep Program689742 +Ref: Egrep Program-Footnote-1697245 +Node: Id Program697355 +Node: Split Program701031 +Ref: Split Program-Footnote-1704485 +Node: Tee Program704613 +Node: Uniq Program707402 +Node: Wc Program714821 +Ref: Wc Program-Footnote-1719071 +Node: Miscellaneous Programs719165 +Node: Dupword Program720378 +Node: Alarm Program722409 +Node: Translate Program727214 +Ref: Translate Program-Footnote-1731777 +Node: Labels Program732047 +Ref: Labels Program-Footnote-1735398 +Node: Word Sorting735482 +Node: History Sorting739552 +Node: Extract Program741387 +Node: Simple Sed748911 +Node: Igawk Program751981 +Ref: Igawk Program-Footnote-1766307 +Ref: Igawk Program-Footnote-2766508 +Ref: Igawk Program-Footnote-3766630 +Node: Anagram Program766745 +Node: Signature Program769806 +Node: Programs Summary771053 +Node: Programs Exercises772274 +Ref: Programs Exercises-Footnote-1776405 +Node: Advanced Features776496 +Node: Nondecimal Data778478 +Node: Array Sorting780068 +Node: Controlling Array Traversal780768 +Ref: Controlling Array Traversal-Footnote-1789134 +Node: Array Sorting Functions789252 +Ref: Array Sorting Functions-Footnote-1793138 +Node: Two-way I/O793334 +Ref: Two-way I/O-Footnote-1798279 +Ref: Two-way I/O-Footnote-2798465 +Node: TCP/IP Networking798547 +Node: Profiling801419 +Node: Advanced Features Summary809690 +Node: Internationalization811623 +Node: I18N and L10N813103 +Node: Explaining gettext813789 +Ref: Explaining gettext-Footnote-1818814 +Ref: Explaining gettext-Footnote-2818998 +Node: Programmer i18n819163 +Ref: Programmer i18n-Footnote-1824039 +Node: Translator i18n824088 +Node: String Extraction824882 +Ref: String Extraction-Footnote-1826013 +Node: Printf Ordering826099 +Ref: Printf Ordering-Footnote-1828885 +Node: I18N Portability828949 +Ref: I18N Portability-Footnote-1831405 +Node: I18N Example831468 +Ref: I18N Example-Footnote-1834271 +Node: Gawk I18N834343 +Node: I18N Summary834987 +Node: Debugger836327 +Node: Debugging837349 +Node: Debugging Concepts837790 +Node: Debugging Terms839600 +Node: Awk Debugging842172 +Node: Sample Debugging Session843078 +Node: Debugger Invocation843612 +Node: Finding The Bug844997 +Node: List of Debugger Commands851476 +Node: Breakpoint Control852808 +Node: Debugger Execution Control856485 +Node: Viewing And Changing Data859844 +Node: Execution Stack863220 +Node: Debugger Info864855 +Node: Miscellaneous Debugger Commands868900 +Node: Readline Support873901 +Node: Limitations874795 +Node: Debugging Summary876910 +Node: Arbitrary Precision Arithmetic878084 +Node: Computer Arithmetic879500 +Ref: table-numeric-ranges883099 +Ref: Computer Arithmetic-Footnote-1883623 +Node: Math Definitions883680 +Ref: table-ieee-formats886975 +Ref: Math Definitions-Footnote-1887579 +Node: MPFR features887684 +Node: FP Math Caution889355 +Ref: FP Math Caution-Footnote-1890405 +Node: Inexactness of computations890774 +Node: Inexact representation891733 +Node: Comparing FP Values893091 +Node: Errors accumulate894173 +Node: Getting Accuracy895605 +Node: Try To Round898309 +Node: Setting precision899208 +Ref: table-predefined-precision-strings899892 +Node: Setting the rounding mode901721 +Ref: table-gawk-rounding-modes902085 +Ref: Setting the rounding mode-Footnote-1905537 +Node: Arbitrary Precision Integers905716 +Ref: Arbitrary Precision Integers-Footnote-1910614 +Node: POSIX Floating Point Problems910763 +Ref: POSIX Floating Point Problems-Footnote-1914642 +Node: Floating point summary914680 +Node: Dynamic Extensions916876 +Node: Extension Intro918428 +Node: Plugin License919693 +Node: Extension Mechanism Outline920490 +Ref: figure-load-extension920918 +Ref: figure-register-new-function922398 +Ref: figure-call-new-function923402 +Node: Extension API Description925389 +Node: Extension API Functions Introduction926839 +Node: General Data Types931660 +Ref: General Data Types-Footnote-1937560 +Node: Memory Allocation Functions937859 +Ref: Memory Allocation Functions-Footnote-1940698 +Node: Constructor Functions940797 +Node: Registration Functions942532 +Node: Extension Functions943217 +Node: Exit Callback Functions945514 +Node: Extension Version String946762 +Node: Input Parsers947425 +Node: Output Wrappers957300 +Node: Two-way processors961813 +Node: Printing Messages964076 +Ref: Printing Messages-Footnote-1965152 +Node: Updating `ERRNO'965304 +Node: Requesting Values966044 +Ref: table-value-types-returned966771 +Node: Accessing Parameters967728 +Node: Symbol Table Access968962 +Node: Symbol table by name969476 +Node: Symbol table by cookie971496 +Ref: Symbol table by cookie-Footnote-1975641 +Node: Cached values975704 +Ref: Cached values-Footnote-1979200 +Node: Array Manipulation979291 +Ref: Array Manipulation-Footnote-1980389 +Node: Array Data Types980426 +Ref: Array Data Types-Footnote-1983081 +Node: Array Functions983173 +Node: Flattening Arrays987032 +Node: Creating Arrays993934 +Node: Extension API Variables998705 +Node: Extension Versioning999341 +Node: Extension API Informational Variables1001232 +Node: Extension API Boilerplate1002297 +Node: Finding Extensions1006106 +Node: Extension Example1006666 +Node: Internal File Description1007438 +Node: Internal File Ops1011505 +Ref: Internal File Ops-Footnote-11023256 +Node: Using Internal File Ops1023396 +Ref: Using Internal File Ops-Footnote-11025779 +Node: Extension Samples1026052 +Node: Extension Sample File Functions1027580 +Node: Extension Sample Fnmatch1035261 +Node: Extension Sample Fork1036749 +Node: Extension Sample Inplace1037964 +Node: Extension Sample Ord1039640 +Node: Extension Sample Readdir1040476 +Ref: table-readdir-file-types1041353 +Node: Extension Sample Revout1042164 +Node: Extension Sample Rev2way1042753 +Node: Extension Sample Read write array1043493 +Node: Extension Sample Readfile1045433 +Node: Extension Sample Time1046528 +Node: Extension Sample API Tests1047876 +Node: gawkextlib1048367 +Node: Extension summary1051045 +Node: Extension Exercises1054734 +Node: Language History1055456 +Node: V7/SVR3.11057112 +Node: SVR41059293 +Node: POSIX1060738 +Node: BTL1062127 +Node: POSIX/GNU1062861 +Node: Feature History1068650 +Node: Common Extensions1082376 +Node: Ranges and Locales1083700 +Ref: Ranges and Locales-Footnote-11088318 +Ref: Ranges and Locales-Footnote-21088345 +Ref: Ranges and Locales-Footnote-31088579 +Node: Contributors1088800 +Node: History summary1094341 +Node: Installation1095711 +Node: Gawk Distribution1096657 +Node: Getting1097141 +Node: Extracting1097964 +Node: Distribution contents1099599 +Node: Unix Installation1105664 +Node: Quick Installation1106347 +Node: Shell Startup Files1108758 +Node: Additional Configuration Options1109837 +Node: Configuration Philosophy1111576 +Node: Non-Unix Installation1113945 +Node: PC Installation1114403 +Node: PC Binary Installation1115722 +Node: PC Compiling1117570 +Ref: PC Compiling-Footnote-11120591 +Node: PC Testing1120700 +Node: PC Using1121876 +Node: Cygwin1125991 +Node: MSYS1126814 +Node: VMS Installation1127314 +Node: VMS Compilation1128106 +Ref: VMS Compilation-Footnote-11129328 +Node: VMS Dynamic Extensions1129386 +Node: VMS Installation Details1131070 +Node: VMS Running1133322 +Node: VMS GNV1136158 +Node: VMS Old Gawk1136892 +Node: Bugs1137362 +Node: Other Versions1141245 +Node: Installation summary1147669 +Node: Notes1148725 +Node: Compatibility Mode1149590 +Node: Additions1150372 +Node: Accessing The Source1151297 +Node: Adding Code1152732 +Node: New Ports1158889 +Node: Derived Files1163371 +Ref: Derived Files-Footnote-11168846 +Ref: Derived Files-Footnote-21168880 +Ref: Derived Files-Footnote-31169476 +Node: Future Extensions1169590 +Node: Implementation Limitations1170196 +Node: Extension Design1171444 +Node: Old Extension Problems1172598 +Ref: Old Extension Problems-Footnote-11174115 +Node: Extension New Mechanism Goals1174172 +Ref: Extension New Mechanism Goals-Footnote-11177532 +Node: Extension Other Design Decisions1177721 +Node: Extension Future Growth1179829 +Node: Old Extension Mechanism1180665 +Node: Notes summary1182427 +Node: Basic Concepts1183613 +Node: Basic High Level1184294 +Ref: figure-general-flow1184566 +Ref: figure-process-flow1185165 +Ref: Basic High Level-Footnote-11188394 +Node: Basic Data Typing1188579 +Node: Glossary1191907 +Node: Copying1223836 +Node: GNU Free Documentation License1261392 +Node: Index1286528 End Tag Table |