diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ChangeLog | 5 | ||||
-rw-r--r-- | doc/gawk.1 | 10 | ||||
-rw-r--r-- | doc/gawk.info | 731 | ||||
-rw-r--r-- | doc/gawk.texi | 16 | ||||
-rw-r--r-- | doc/gawktexi.in | 16 |
5 files changed, 407 insertions, 371 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog index 54ccdd6b..0f2a5ead 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -12,6 +12,11 @@ * gawktexi.in (FN, FFN, DF,DDF, PVERSION, CTL): Remove macros. They have no alternate versions and are just in the way. +2013-08-15 Arnold D. Robbins <arnold@skeeve.com> + + * gawk.1: Document that ENVIRON updates affect the environment. + * gawktexi.in: Ditto. + 2013-06-27 Arnold D. Robbins <arnold@skeeve.com> * texinfo.tex: Update from Karl, fixes a formating problem. @@ -13,7 +13,7 @@ . if \w'\(rq' .ds rq "\(rq . \} .\} -.TH GAWK 1 "May 09 2013" "Free Software Foundation" "Utility Commands" +.TH GAWK 1 "Aug 15 2013" "Free Software Foundation" "Utility Commands" .SH NAME gawk \- pattern scanning and processing language .SH SYNOPSIS @@ -917,11 +917,17 @@ An array containing the values of the current environment. The array is indexed by the environment variables, each element being the value of that variable (e.g., \fBENVIRON["HOME"]\fP might be \fB"/home/arnold"\fR). -Changing this array does not affect the environment seen by programs which +.sp +In POSIX mode, +changing this array does not affect the environment seen by programs which .I gawk spawns via redirection or the .B system() function. +Otherwise, +.I gawk +updates its real environment so that programs it spawns see +the changes. .TP .B ERRNO If a system error occurs either doing a redirection for diff --git a/doc/gawk.info b/doc/gawk.info index b5120148..1b4a66e9 100644 --- a/doc/gawk.info +++ b/doc/gawk.info @@ -9681,9 +9681,18 @@ with a pound sign (`#'). 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. + 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 {No value for `PVERSION'} 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. Some operating systems may not have environment variables. On such systems, the `ENVIRON' array is empty (except for @@ -30144,9 +30153,9 @@ Index * dark corner, exit statement: Exit Statement. (line 30) * dark corner, field separators: Field Splitting Summary. (line 46) -* dark corner, FILENAME variable <1>: Auto-set. (line 93) +* dark corner, FILENAME variable <1>: Auto-set. (line 102) * 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 323) * dark corner, format-control characters: Control Letters. (line 18) * dark corner, FS as null string: Single Character Fields. (line 20) @@ -30315,12 +30324,12 @@ Index (line 23) * differences in awk and gawk, close() function: Close Files And Pipes. (line 81) -* differences in awk and gawk, ERRNO variable: Auto-set. (line 73) +* differences in awk and gawk, ERRNO variable: Auto-set. (line 82) * differences in awk and gawk, error messages: Special FD. (line 16) * differences in awk and gawk, FIELDWIDTHS variable: User-modified. (line 35) * differences in awk and gawk, FPAT variable: User-modified. (line 45) -* differences in awk and gawk, FUNCTAB variable: Auto-set. (line 119) +* differences in awk and gawk, FUNCTAB variable: Auto-set. (line 128) * differences in awk and gawk, function arguments (gawk): Calling Built-in. (line 16) * differences in awk and gawk, getline command: Getline. (line 19) @@ -30343,14 +30352,14 @@ Index (line 261) * differences in awk and gawk, print/printf statements: Format Modifiers. (line 13) -* differences in awk and gawk, PROCINFO array: Auto-set. (line 133) +* differences in awk and gawk, PROCINFO array: Auto-set. (line 142) * differences in awk and gawk, record separators: Records. (line 117) * differences in awk and gawk, regexp constants: Using Constant Regexps. (line 43) * differences in awk and gawk, regular expressions: Case-sensitivity. (line 26) * differences in awk and gawk, RS/RT variables: Records. (line 172) -* differences in awk and gawk, RT variable: Auto-set. (line 266) +* differences in awk and gawk, RT variable: Auto-set. (line 275) * differences in awk and gawk, single-character fields: Single Character Fields. (line 6) * differences in awk and gawk, split() function: String Functions. @@ -30359,7 +30368,7 @@ Index * differences in awk and gawk, strings, storing: Records. (line 191) * differences in awk and gawk, strtonum() function (gawk): String Functions. (line 406) -* differences in awk and gawk, SYMTAB variable: Auto-set. (line 274) +* differences in awk and gawk, SYMTAB variable: Auto-set. (line 283) * differences in awk and gawk, TEXTDOMAIN variable: User-modified. (line 162) * differences in awk and gawk, trunc-mod operation: Arithmetic Ops. @@ -30440,13 +30449,13 @@ Index (line 11) * EREs (Extended Regular Expressions): Bracket Expressions. (line 24) * ERRNO variable <1>: TCP/IP Networking. (line 54) -* ERRNO variable <2>: Auto-set. (line 73) +* ERRNO variable <2>: Auto-set. (line 82) * ERRNO variable <3>: BEGINFILE/ENDFILE. (line 26) * ERRNO variable <4>: Close Files And Pipes. (line 138) * ERRNO variable: Getline. (line 19) * error handling: Special FD. (line 16) -* error handling, ERRNO variable and: Auto-set. (line 73) +* error handling, ERRNO variable and: Auto-set. (line 82) * error output: Special FD. (line 6) * escape processing, gsub()/gensub()/sub() functions: Gory Details. (line 6) @@ -30558,7 +30567,7 @@ Index * file names, distinguishing: Auto-set. (line 52) * file names, in compatibility mode: Special Caveats. (line 9) * file names, standard streams in gawk: Special FD. (line 46) -* FILENAME variable <1>: Auto-set. (line 93) +* FILENAME variable <1>: Auto-set. (line 102) * FILENAME variable: Reading Files. (line 6) * FILENAME variable, getline, setting with: Getline Notes. (line 19) * filenames, assignments as: Ignoring Assigns. (line 6) @@ -30625,9 +30634,9 @@ Index * floating-point, numbers: General Arithmetic. (line 6) * fnmatch extension function: Extension Sample Fnmatch. (line 6) -* FNR variable <1>: Auto-set. (line 103) +* FNR variable <1>: Auto-set. (line 112) * FNR variable: Records. (line 6) -* FNR variable, changing: Auto-set. (line 314) +* FNR variable, changing: Auto-set. (line 323) * for statement: For Statement. (line 6) * for statement, looping over arrays: Scanning an Array. (line 20) * fork extension function: Extension Sample Fork. @@ -30674,7 +30683,7 @@ Index * FSF (Free Software Foundation): Manual History. (line 6) * fts extension function: Extension Sample File Functions. (line 77) -* FUNCTAB array: Auto-set. (line 119) +* FUNCTAB array: Auto-set. (line 128) * function calls: Function Calls. (line 6) * function calls, indirect: Indirect Calls. (line 6) * function pointers: Indirect Calls. (line 6) @@ -30743,7 +30752,7 @@ 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 73) +* gawk, ERRNO variable in <2>: Auto-set. (line 82) * gawk, ERRNO variable in <3>: BEGINFILE/ENDFILE. (line 26) * gawk, ERRNO variable in <4>: Close Files And Pipes. (line 138) @@ -30760,7 +30769,7 @@ Index * gawk, FPAT variable in <1>: User-modified. (line 45) * gawk, FPAT variable in: Splitting By Content. (line 26) -* gawk, FUNCTAB array in: Auto-set. (line 119) +* gawk, FUNCTAB array in: Auto-set. (line 128) * 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. @@ -30791,7 +30800,7 @@ Index * gawk, OS/2 version of: PC Using. (line 11) * gawk, PROCINFO array in <1>: Two-way I/O. (line 116) * gawk, PROCINFO array in <2>: Time Functions. (line 47) -* gawk, PROCINFO array in: Auto-set. (line 133) +* gawk, PROCINFO array in: Auto-set. (line 142) * gawk, regexp constants and: Using Constant Regexps. (line 28) * gawk, regular expressions, case sensitivity: Case-sensitivity. @@ -30799,7 +30808,7 @@ 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 266) +* gawk, RT variable in <1>: Auto-set. (line 275) * gawk, RT variable in <2>: Getline/Variable/File. (line 10) * gawk, RT variable in <3>: Multiple Line. (line 129) @@ -30808,7 +30817,7 @@ Index * 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 274) +* gawk, SYMTAB array in: Auto-set. (line 283) * gawk, TEXTDOMAIN variable in: User-modified. (line 162) * gawk, timestamps: Time Functions. (line 6) * gawk, uses for: Preface. (line 36) @@ -31211,16 +31220,16 @@ Index (line 47) * nexti debugger command: Debugger Execution Control. (line 49) -* NF variable <1>: Auto-set. (line 108) +* NF variable <1>: Auto-set. (line 117) * NF variable: Fields. (line 33) * NF variable, decrementing: Changing Fields. (line 107) * ni debugger command (alias for nexti): Debugger Execution Control. (line 49) * noassign.awk program: Ignoring Assigns. (line 15) * not Boolean-logic operator: Boolean Ops. (line 6) -* NR variable <1>: Auto-set. (line 128) +* NR variable <1>: Auto-set. (line 137) * NR variable: Records. (line 6) -* NR variable, changing: Auto-set. (line 314) +* NR variable, changing: Auto-set. (line 323) * null strings <1>: Basic Data Typing. (line 26) * null strings <2>: Truth Values. (line 6) * null strings <3>: Regexp Field Splitting. @@ -31500,7 +31509,7 @@ Index * PROCINFO array <3>: Group Functions. (line 6) * PROCINFO array <4>: Passwd Functions. (line 6) * PROCINFO array <5>: Time Functions. (line 47) -* PROCINFO array <6>: Auto-set. (line 133) +* PROCINFO array <6>: Auto-set. (line 142) * PROCINFO array: Obsolete. (line 11) * profiling awk programs: Profiling. (line 6) * profiling awk programs, dynamically: Profiling. (line 172) @@ -31654,7 +31663,7 @@ Index * right angle bracket (>), >> operator (I/O): Redirection. (line 50) * right shift, bitwise: Bitwise Functions. (line 32) * Ritchie, Dennis: Basic Data Typing. (line 55) -* RLENGTH variable: Auto-set. (line 253) +* RLENGTH variable: Auto-set. (line 262) * RLENGTH variable, match() function and: String Functions. (line 225) * Robbins, Arnold <1>: Future Extensions. (line 6) * Robbins, Arnold <2>: Bugs. (line 32) @@ -31681,9 +31690,9 @@ Index * RS variable: Records. (line 20) * RS variable, multiline records and: Multiple Line. (line 17) * rshift() function (gawk): Bitwise Functions. (line 52) -* RSTART variable: Auto-set. (line 259) +* RSTART variable: Auto-set. (line 268) * RSTART variable, match() function and: String Functions. (line 225) -* RT variable <1>: Auto-set. (line 266) +* RT variable <1>: Auto-set. (line 275) * RT variable <2>: Getline/Variable/File. (line 10) * RT variable <3>: Multiple Line. (line 129) @@ -31766,7 +31775,7 @@ Index (line 110) * sidebar, Changing FS Does Not Affect the Fields: Field Splitting Summary. (line 38) -* sidebar, Changing NR and FNR: Auto-set. (line 312) +* sidebar, Changing NR and FNR: Auto-set. (line 321) * sidebar, Controlling Output Buffering with system(): I/O Functions. (line 135) * sidebar, Escape Sequences for Metacharacters: Escape Sequences. @@ -31909,7 +31918,7 @@ Index * substr() function: String Functions. (line 483) * Sumner, Andrew: Other Versions. (line 64) * switch statement: Switch Statement. (line 6) -* SYMTAB array: Auto-set. (line 274) +* SYMTAB array: Auto-set. (line 283) * syntactic ambiguity: /= operator vs. /=.../ regexp constant: Assignment Ops. (line 147) * system() function: I/O Functions. (line 72) @@ -32350,336 +32359,336 @@ Node: Built-in Variables403072 Node: User-modified404167 Ref: User-modified-Footnote-1412527 Node: Auto-set412589 -Ref: Auto-set-Footnote-1425667 -Ref: Auto-set-Footnote-2425872 -Node: ARGC and ARGV425928 -Node: Arrays429779 -Node: Array Basics431284 -Node: Array Intro432110 -Node: Reference to Elements436428 -Node: Assigning Elements438698 -Node: Array Example439189 -Node: Scanning an Array440921 -Node: Controlling Scanning443235 -Ref: Controlling Scanning-Footnote-1448158 -Node: Delete448474 -Ref: Delete-Footnote-1451239 -Node: Numeric Array Subscripts451296 -Node: Uninitialized Subscripts453479 -Node: Multi-dimensional455107 -Node: Multi-scanning458201 -Node: Arrays of Arrays459792 -Node: Functions464433 -Node: Built-in465252 -Node: Calling Built-in466330 -Node: Numeric Functions468318 -Ref: Numeric Functions-Footnote-1472150 -Ref: Numeric Functions-Footnote-2472507 -Ref: Numeric Functions-Footnote-3472555 -Node: String Functions472824 -Ref: String Functions-Footnote-1496382 -Ref: String Functions-Footnote-2496511 -Ref: String Functions-Footnote-3496759 -Node: Gory Details496846 -Ref: table-sub-escapes498525 -Ref: table-sub-posix-92499879 -Ref: table-sub-proposed501230 -Ref: table-posix-sub502584 -Ref: table-gensub-escapes504129 -Ref: Gory Details-Footnote-1505305 -Ref: Gory Details-Footnote-2505356 -Node: I/O Functions505507 -Ref: I/O Functions-Footnote-1512492 -Node: Time Functions512639 -Ref: Time Functions-Footnote-1523572 -Ref: Time Functions-Footnote-2523640 -Ref: Time Functions-Footnote-3523798 -Ref: Time Functions-Footnote-4523909 -Ref: Time Functions-Footnote-5524021 -Ref: Time Functions-Footnote-6524248 -Node: Bitwise Functions524514 -Ref: table-bitwise-ops525072 -Ref: Bitwise Functions-Footnote-1529293 -Node: Type Functions529477 -Node: I18N Functions530628 -Node: User-defined532255 -Node: Definition Syntax533059 -Ref: Definition Syntax-Footnote-1537969 -Node: Function Example538038 -Node: Function Caveats540632 -Node: Calling A Function541053 -Node: Variable Scope542168 -Node: Pass By Value/Reference545131 -Node: Return Statement548639 -Node: Dynamic Typing551620 -Node: Indirect Calls552551 -Node: Library Functions562236 -Ref: Library Functions-Footnote-1565749 -Ref: Library Functions-Footnote-2565892 -Node: Library Names566063 -Ref: Library Names-Footnote-1569534 -Ref: Library Names-Footnote-2569754 -Node: General Functions569840 -Node: Strtonum Function570868 -Node: Assert Function573798 -Node: Round Function577124 -Node: Cliff Random Function578667 -Node: Ordinal Functions579683 -Ref: Ordinal Functions-Footnote-1582753 -Ref: Ordinal Functions-Footnote-2583005 -Node: Join Function583214 -Ref: Join Function-Footnote-1584985 -Node: Getlocaltime Function585185 -Node: Readfile Function588926 -Node: Data File Management590765 -Node: Filetrans Function591397 -Node: Rewind Function595466 -Node: File Checking596853 -Node: Empty Files597947 -Node: Ignoring Assigns600177 -Node: Getopt Function601730 -Ref: Getopt Function-Footnote-1613034 -Node: Passwd Functions613237 -Ref: Passwd Functions-Footnote-1622212 -Node: Group Functions622300 -Node: Walking Arrays630384 -Node: Sample Programs632521 -Node: Running Examples633195 -Node: Clones633923 -Node: Cut Program635147 -Node: Egrep Program644992 -Ref: Egrep Program-Footnote-1652765 -Node: Id Program652875 -Node: Split Program656491 -Ref: Split Program-Footnote-1660010 -Node: Tee Program660138 -Node: Uniq Program662941 -Node: Wc Program670370 -Ref: Wc Program-Footnote-1674636 -Ref: Wc Program-Footnote-2674836 -Node: Miscellaneous Programs674928 -Node: Dupword Program676116 -Node: Alarm Program678147 -Node: Translate Program682896 -Ref: Translate Program-Footnote-1687283 -Ref: Translate Program-Footnote-2687511 -Node: Labels Program687645 -Ref: Labels Program-Footnote-1691016 -Node: Word Sorting691100 -Node: History Sorting694984 -Node: Extract Program696823 -Ref: Extract Program-Footnote-1704324 -Node: Simple Sed704452 -Node: Igawk Program707514 -Ref: Igawk Program-Footnote-1722671 -Ref: Igawk Program-Footnote-2722872 -Node: Anagram Program723010 -Node: Signature Program726078 -Node: Advanced Features727178 -Node: Nondecimal Data729060 -Node: Array Sorting730643 -Node: Controlling Array Traversal731340 -Node: Array Sorting Functions739578 -Ref: Array Sorting Functions-Footnote-1743252 -Ref: Array Sorting Functions-Footnote-2743345 -Node: Two-way I/O743539 -Ref: Two-way I/O-Footnote-1748971 -Node: TCP/IP Networking749041 -Node: Profiling751885 -Node: Internationalization759382 -Node: I18N and L10N760807 -Node: Explaining gettext761493 -Ref: Explaining gettext-Footnote-1766561 -Ref: Explaining gettext-Footnote-2766745 -Node: Programmer i18n766910 -Node: Translator i18n771112 -Node: String Extraction771905 -Ref: String Extraction-Footnote-1772866 -Node: Printf Ordering772952 -Ref: Printf Ordering-Footnote-1775736 -Node: I18N Portability775800 -Ref: I18N Portability-Footnote-1778249 -Node: I18N Example778312 -Ref: I18N Example-Footnote-1780950 -Node: Gawk I18N781022 -Node: Debugger781643 -Node: Debugging782614 -Node: Debugging Concepts783047 -Node: Debugging Terms784903 -Node: Awk Debugging787500 -Node: Sample Debugging Session788392 -Node: Debugger Invocation788912 -Node: Finding The Bug790244 -Node: List of Debugger Commands796732 -Node: Breakpoint Control798066 -Node: Debugger Execution Control801730 -Node: Viewing And Changing Data805090 -Node: Execution Stack808446 -Node: Debugger Info809913 -Node: Miscellaneous Debugger Commands813895 -Node: Readline Support819071 -Node: Limitations819902 -Node: Arbitrary Precision Arithmetic822154 -Ref: Arbitrary Precision Arithmetic-Footnote-1823805 -Node: General Arithmetic823953 -Node: Floating Point Issues825673 -Node: String Conversion Precision826554 -Ref: String Conversion Precision-Footnote-1828260 -Node: Unexpected Results828369 -Node: POSIX Floating Point Problems830522 -Ref: POSIX Floating Point Problems-Footnote-1834347 -Node: Integer Programming834385 -Node: Floating-point Programming836124 -Ref: Floating-point Programming-Footnote-1842455 -Ref: Floating-point Programming-Footnote-2842725 -Node: Floating-point Representation842989 -Node: Floating-point Context844154 -Ref: table-ieee-formats844993 -Node: Rounding Mode846377 -Ref: table-rounding-modes846856 -Ref: Rounding Mode-Footnote-1849871 -Node: Gawk and MPFR850050 -Node: Arbitrary Precision Floats851305 -Ref: Arbitrary Precision Floats-Footnote-1853748 -Node: Setting Precision854064 -Ref: table-predefined-precision-strings854750 -Node: Setting Rounding Mode856895 -Ref: table-gawk-rounding-modes857299 -Node: Floating-point Constants858486 -Node: Changing Precision859915 -Ref: Changing Precision-Footnote-1861315 -Node: Exact Arithmetic861489 -Node: Arbitrary Precision Integers864627 -Ref: Arbitrary Precision Integers-Footnote-1867645 -Node: Dynamic Extensions867792 -Node: Extension Intro869250 -Node: Plugin License870515 -Node: Extension Mechanism Outline871200 -Ref: load-extension871617 -Ref: load-new-function873095 -Ref: call-new-function874090 -Node: Extension API Description876105 -Node: Extension API Functions Introduction877318 -Node: General Data Types882184 -Ref: General Data Types-Footnote-1887786 -Node: Requesting Values888085 -Ref: table-value-types-returned888816 -Node: Constructor Functions889770 -Node: Registration Functions892790 -Node: Extension Functions893475 -Node: Exit Callback Functions895700 -Node: Extension Version String896949 -Node: Input Parsers897599 -Node: Output Wrappers907356 -Node: Two-way processors911866 -Node: Printing Messages914074 -Ref: Printing Messages-Footnote-1915151 -Node: Updating `ERRNO'915303 -Node: Accessing Parameters916042 -Node: Symbol Table Access917272 -Node: Symbol table by name917784 -Node: Symbol table by cookie919531 -Ref: Symbol table by cookie-Footnote-1923661 -Node: Cached values923724 -Ref: Cached values-Footnote-1927173 -Node: Array Manipulation927264 -Ref: Array Manipulation-Footnote-1928362 -Node: Array Data Types928401 -Ref: Array Data Types-Footnote-1931104 -Node: Array Functions931196 -Node: Flattening Arrays934962 -Node: Creating Arrays941814 -Node: Extension API Variables946539 -Node: Extension Versioning947175 -Node: Extension API Informational Variables949076 -Node: Extension API Boilerplate950162 -Node: Finding Extensions953966 -Node: Extension Example954526 -Node: Internal File Description955257 -Node: Internal File Ops959348 -Ref: Internal File Ops-Footnote-1970856 -Node: Using Internal File Ops970996 -Ref: Using Internal File Ops-Footnote-1973349 -Node: Extension Samples973615 -Node: Extension Sample File Functions975139 -Node: Extension Sample Fnmatch983626 -Node: Extension Sample Fork985352 -Node: Extension Sample Inplace986570 -Node: Extension Sample Ord988348 -Node: Extension Sample Readdir989184 -Node: Extension Sample Revout990716 -Node: Extension Sample Rev2way991309 -Node: Extension Sample Read write array991999 -Node: Extension Sample Readfile993882 -Node: Extension Sample API Tests994700 -Node: Extension Sample Time995225 -Node: gawkextlib996589 -Node: Language History999349 -Node: V7/SVR3.11000871 -Node: SVR41003192 -Node: POSIX1004634 -Node: BTL1006020 -Node: POSIX/GNU1006754 -Node: Common Extensions1012289 -Node: Ranges and Locales1013595 -Ref: Ranges and Locales-Footnote-11018213 -Ref: Ranges and Locales-Footnote-21018240 -Ref: Ranges and Locales-Footnote-31018500 -Node: Contributors1018721 -Node: Installation1023600 -Node: Gawk Distribution1024494 -Node: Getting1024978 -Node: Extracting1025804 -Node: Distribution contents1027496 -Node: Unix Installation1032757 -Node: Quick Installation1033374 -Node: Additional Configuration Options1035818 -Node: Configuration Philosophy1037295 -Node: Non-Unix Installation1039649 -Node: PC Installation1040107 -Node: PC Binary Installation1041406 -Node: PC Compiling1043254 -Node: PC Testing1046198 -Node: PC Using1047374 -Node: Cygwin1051559 -Node: MSYS1052559 -Node: VMS Installation1053073 -Node: VMS Compilation1053676 -Ref: VMS Compilation-Footnote-11054683 -Node: VMS Installation Details1054741 -Node: VMS Running1056376 -Node: VMS Old Gawk1057983 -Node: Bugs1058457 -Node: Other Versions1062309 -Node: Notes1068390 -Node: Compatibility Mode1069190 -Node: Additions1069973 -Node: Accessing The Source1070900 -Node: Adding Code1072340 -Node: New Ports1078385 -Node: Derived Files1082520 -Ref: Derived Files-Footnote-11087841 -Ref: Derived Files-Footnote-21087875 -Ref: Derived Files-Footnote-31088475 -Node: Future Extensions1088573 -Node: Implementation Limitations1089154 -Node: Extension Design1090406 -Node: Old Extension Problems1091560 -Ref: Old Extension Problems-Footnote-11093068 -Node: Extension New Mechanism Goals1093125 -Ref: Extension New Mechanism Goals-Footnote-11096491 -Node: Extension Other Design Decisions1096677 -Node: Extension Future Growth1098783 -Node: Old Extension Mechanism1099619 -Node: Basic Concepts1101359 -Node: Basic High Level1102040 -Ref: figure-general-flow1102311 -Ref: figure-process-flow1102910 -Ref: Basic High Level-Footnote-11106139 -Node: Basic Data Typing1106324 -Node: Glossary1109679 -Node: Copying1135141 -Node: GNU Free Documentation License1172698 -Node: Index1197835 +Ref: Auto-set-Footnote-1426077 +Ref: Auto-set-Footnote-2426282 +Node: ARGC and ARGV426338 +Node: Arrays430189 +Node: Array Basics431694 +Node: Array Intro432520 +Node: Reference to Elements436838 +Node: Assigning Elements439108 +Node: Array Example439599 +Node: Scanning an Array441331 +Node: Controlling Scanning443645 +Ref: Controlling Scanning-Footnote-1448568 +Node: Delete448884 +Ref: Delete-Footnote-1451649 +Node: Numeric Array Subscripts451706 +Node: Uninitialized Subscripts453889 +Node: Multi-dimensional455517 +Node: Multi-scanning458611 +Node: Arrays of Arrays460202 +Node: Functions464843 +Node: Built-in465662 +Node: Calling Built-in466740 +Node: Numeric Functions468728 +Ref: Numeric Functions-Footnote-1472560 +Ref: Numeric Functions-Footnote-2472917 +Ref: Numeric Functions-Footnote-3472965 +Node: String Functions473234 +Ref: String Functions-Footnote-1496792 +Ref: String Functions-Footnote-2496921 +Ref: String Functions-Footnote-3497169 +Node: Gory Details497256 +Ref: table-sub-escapes498935 +Ref: table-sub-posix-92500289 +Ref: table-sub-proposed501640 +Ref: table-posix-sub502994 +Ref: table-gensub-escapes504539 +Ref: Gory Details-Footnote-1505715 +Ref: Gory Details-Footnote-2505766 +Node: I/O Functions505917 +Ref: I/O Functions-Footnote-1512902 +Node: Time Functions513049 +Ref: Time Functions-Footnote-1523982 +Ref: Time Functions-Footnote-2524050 +Ref: Time Functions-Footnote-3524208 +Ref: Time Functions-Footnote-4524319 +Ref: Time Functions-Footnote-5524431 +Ref: Time Functions-Footnote-6524658 +Node: Bitwise Functions524924 +Ref: table-bitwise-ops525482 +Ref: Bitwise Functions-Footnote-1529703 +Node: Type Functions529887 +Node: I18N Functions531038 +Node: User-defined532665 +Node: Definition Syntax533469 +Ref: Definition Syntax-Footnote-1538379 +Node: Function Example538448 +Node: Function Caveats541042 +Node: Calling A Function541463 +Node: Variable Scope542578 +Node: Pass By Value/Reference545541 +Node: Return Statement549049 +Node: Dynamic Typing552030 +Node: Indirect Calls552961 +Node: Library Functions562646 +Ref: Library Functions-Footnote-1566159 +Ref: Library Functions-Footnote-2566302 +Node: Library Names566473 +Ref: Library Names-Footnote-1569944 +Ref: Library Names-Footnote-2570164 +Node: General Functions570250 +Node: Strtonum Function571278 +Node: Assert Function574208 +Node: Round Function577534 +Node: Cliff Random Function579077 +Node: Ordinal Functions580093 +Ref: Ordinal Functions-Footnote-1583163 +Ref: Ordinal Functions-Footnote-2583415 +Node: Join Function583624 +Ref: Join Function-Footnote-1585395 +Node: Getlocaltime Function585595 +Node: Readfile Function589336 +Node: Data File Management591175 +Node: Filetrans Function591807 +Node: Rewind Function595876 +Node: File Checking597263 +Node: Empty Files598357 +Node: Ignoring Assigns600587 +Node: Getopt Function602140 +Ref: Getopt Function-Footnote-1613444 +Node: Passwd Functions613647 +Ref: Passwd Functions-Footnote-1622622 +Node: Group Functions622710 +Node: Walking Arrays630794 +Node: Sample Programs632931 +Node: Running Examples633605 +Node: Clones634333 +Node: Cut Program635557 +Node: Egrep Program645402 +Ref: Egrep Program-Footnote-1653175 +Node: Id Program653285 +Node: Split Program656901 +Ref: Split Program-Footnote-1660420 +Node: Tee Program660548 +Node: Uniq Program663351 +Node: Wc Program670780 +Ref: Wc Program-Footnote-1675046 +Ref: Wc Program-Footnote-2675246 +Node: Miscellaneous Programs675338 +Node: Dupword Program676526 +Node: Alarm Program678557 +Node: Translate Program683306 +Ref: Translate Program-Footnote-1687693 +Ref: Translate Program-Footnote-2687921 +Node: Labels Program688055 +Ref: Labels Program-Footnote-1691426 +Node: Word Sorting691510 +Node: History Sorting695394 +Node: Extract Program697233 +Ref: Extract Program-Footnote-1704734 +Node: Simple Sed704862 +Node: Igawk Program707924 +Ref: Igawk Program-Footnote-1723081 +Ref: Igawk Program-Footnote-2723282 +Node: Anagram Program723420 +Node: Signature Program726488 +Node: Advanced Features727588 +Node: Nondecimal Data729470 +Node: Array Sorting731053 +Node: Controlling Array Traversal731750 +Node: Array Sorting Functions739988 +Ref: Array Sorting Functions-Footnote-1743662 +Ref: Array Sorting Functions-Footnote-2743755 +Node: Two-way I/O743949 +Ref: Two-way I/O-Footnote-1749381 +Node: TCP/IP Networking749451 +Node: Profiling752295 +Node: Internationalization759792 +Node: I18N and L10N761217 +Node: Explaining gettext761903 +Ref: Explaining gettext-Footnote-1766971 +Ref: Explaining gettext-Footnote-2767155 +Node: Programmer i18n767320 +Node: Translator i18n771522 +Node: String Extraction772315 +Ref: String Extraction-Footnote-1773276 +Node: Printf Ordering773362 +Ref: Printf Ordering-Footnote-1776146 +Node: I18N Portability776210 +Ref: I18N Portability-Footnote-1778659 +Node: I18N Example778722 +Ref: I18N Example-Footnote-1781360 +Node: Gawk I18N781432 +Node: Debugger782053 +Node: Debugging783024 +Node: Debugging Concepts783457 +Node: Debugging Terms785313 +Node: Awk Debugging787910 +Node: Sample Debugging Session788802 +Node: Debugger Invocation789322 +Node: Finding The Bug790654 +Node: List of Debugger Commands797142 +Node: Breakpoint Control798476 +Node: Debugger Execution Control802140 +Node: Viewing And Changing Data805500 +Node: Execution Stack808856 +Node: Debugger Info810323 +Node: Miscellaneous Debugger Commands814305 +Node: Readline Support819481 +Node: Limitations820312 +Node: Arbitrary Precision Arithmetic822564 +Ref: Arbitrary Precision Arithmetic-Footnote-1824215 +Node: General Arithmetic824363 +Node: Floating Point Issues826083 +Node: String Conversion Precision826964 +Ref: String Conversion Precision-Footnote-1828670 +Node: Unexpected Results828779 +Node: POSIX Floating Point Problems830932 +Ref: POSIX Floating Point Problems-Footnote-1834757 +Node: Integer Programming834795 +Node: Floating-point Programming836534 +Ref: Floating-point Programming-Footnote-1842865 +Ref: Floating-point Programming-Footnote-2843135 +Node: Floating-point Representation843399 +Node: Floating-point Context844564 +Ref: table-ieee-formats845403 +Node: Rounding Mode846787 +Ref: table-rounding-modes847266 +Ref: Rounding Mode-Footnote-1850281 +Node: Gawk and MPFR850460 +Node: Arbitrary Precision Floats851715 +Ref: Arbitrary Precision Floats-Footnote-1854158 +Node: Setting Precision854474 +Ref: table-predefined-precision-strings855160 +Node: Setting Rounding Mode857305 +Ref: table-gawk-rounding-modes857709 +Node: Floating-point Constants858896 +Node: Changing Precision860325 +Ref: Changing Precision-Footnote-1861725 +Node: Exact Arithmetic861899 +Node: Arbitrary Precision Integers865037 +Ref: Arbitrary Precision Integers-Footnote-1868055 +Node: Dynamic Extensions868202 +Node: Extension Intro869660 +Node: Plugin License870925 +Node: Extension Mechanism Outline871610 +Ref: load-extension872027 +Ref: load-new-function873505 +Ref: call-new-function874500 +Node: Extension API Description876515 +Node: Extension API Functions Introduction877728 +Node: General Data Types882594 +Ref: General Data Types-Footnote-1888196 +Node: Requesting Values888495 +Ref: table-value-types-returned889226 +Node: Constructor Functions890180 +Node: Registration Functions893200 +Node: Extension Functions893885 +Node: Exit Callback Functions896110 +Node: Extension Version String897359 +Node: Input Parsers898009 +Node: Output Wrappers907766 +Node: Two-way processors912276 +Node: Printing Messages914484 +Ref: Printing Messages-Footnote-1915561 +Node: Updating `ERRNO'915713 +Node: Accessing Parameters916452 +Node: Symbol Table Access917682 +Node: Symbol table by name918194 +Node: Symbol table by cookie919941 +Ref: Symbol table by cookie-Footnote-1924071 +Node: Cached values924134 +Ref: Cached values-Footnote-1927583 +Node: Array Manipulation927674 +Ref: Array Manipulation-Footnote-1928772 +Node: Array Data Types928811 +Ref: Array Data Types-Footnote-1931514 +Node: Array Functions931606 +Node: Flattening Arrays935372 +Node: Creating Arrays942224 +Node: Extension API Variables946949 +Node: Extension Versioning947585 +Node: Extension API Informational Variables949486 +Node: Extension API Boilerplate950572 +Node: Finding Extensions954376 +Node: Extension Example954936 +Node: Internal File Description955667 +Node: Internal File Ops959758 +Ref: Internal File Ops-Footnote-1971266 +Node: Using Internal File Ops971406 +Ref: Using Internal File Ops-Footnote-1973759 +Node: Extension Samples974025 +Node: Extension Sample File Functions975549 +Node: Extension Sample Fnmatch984036 +Node: Extension Sample Fork985762 +Node: Extension Sample Inplace986980 +Node: Extension Sample Ord988758 +Node: Extension Sample Readdir989594 +Node: Extension Sample Revout991126 +Node: Extension Sample Rev2way991719 +Node: Extension Sample Read write array992409 +Node: Extension Sample Readfile994292 +Node: Extension Sample API Tests995110 +Node: Extension Sample Time995635 +Node: gawkextlib996999 +Node: Language History999759 +Node: V7/SVR3.11001281 +Node: SVR41003602 +Node: POSIX1005044 +Node: BTL1006430 +Node: POSIX/GNU1007164 +Node: Common Extensions1012699 +Node: Ranges and Locales1014005 +Ref: Ranges and Locales-Footnote-11018623 +Ref: Ranges and Locales-Footnote-21018650 +Ref: Ranges and Locales-Footnote-31018910 +Node: Contributors1019131 +Node: Installation1024010 +Node: Gawk Distribution1024904 +Node: Getting1025388 +Node: Extracting1026214 +Node: Distribution contents1027906 +Node: Unix Installation1033167 +Node: Quick Installation1033784 +Node: Additional Configuration Options1036228 +Node: Configuration Philosophy1037705 +Node: Non-Unix Installation1040059 +Node: PC Installation1040517 +Node: PC Binary Installation1041816 +Node: PC Compiling1043664 +Node: PC Testing1046608 +Node: PC Using1047784 +Node: Cygwin1051969 +Node: MSYS1052969 +Node: VMS Installation1053483 +Node: VMS Compilation1054086 +Ref: VMS Compilation-Footnote-11055093 +Node: VMS Installation Details1055151 +Node: VMS Running1056786 +Node: VMS Old Gawk1058393 +Node: Bugs1058867 +Node: Other Versions1062719 +Node: Notes1068800 +Node: Compatibility Mode1069600 +Node: Additions1070383 +Node: Accessing The Source1071310 +Node: Adding Code1072750 +Node: New Ports1078795 +Node: Derived Files1082930 +Ref: Derived Files-Footnote-11088251 +Ref: Derived Files-Footnote-21088285 +Ref: Derived Files-Footnote-31088885 +Node: Future Extensions1088983 +Node: Implementation Limitations1089564 +Node: Extension Design1090816 +Node: Old Extension Problems1091970 +Ref: Old Extension Problems-Footnote-11093478 +Node: Extension New Mechanism Goals1093535 +Ref: Extension New Mechanism Goals-Footnote-11096901 +Node: Extension Other Design Decisions1097087 +Node: Extension Future Growth1099193 +Node: Old Extension Mechanism1100029 +Node: Basic Concepts1101769 +Node: Basic High Level1102450 +Ref: figure-general-flow1102721 +Ref: figure-process-flow1103320 +Ref: Basic High Level-Footnote-11106549 +Node: Basic Data Typing1106734 +Node: Glossary1110089 +Node: Copying1135551 +Node: GNU Free Documentation License1173108 +Node: Index1198245 End Tag Table diff --git a/doc/gawk.texi b/doc/gawk.texi index b2c675fc..35e2169a 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -13647,10 +13647,18 @@ it is 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, -@code{ENVIRON["HOME"]} might be @file{/home/arnold}. Changing this array -does not affect the environment passed on to any programs that -@command{awk} may spawn via redirection or the @code{system()} function. -@c (In a future version of @command{gawk}, it may do so.) +@code{ENVIRON["HOME"]} might be @file{/home/arnold}. + +For POSIX @command{awk}, changing this array does not affect the +environment passed on to any programs that @command{awk} may spawn via +redirection or the @code{system()} function. + +However, beginning with @value{PVERSION} 4.2, if not in POSIX +compatibility mode, @command{gawk} does update its own environment when +@code{ENVIRON} is changed, thus changing the environment seen by programs +that it creates. You should therefore be especially careful if you +modify @code{ENVIRON["PATH"]"}, which is the search path for finding +executable programs. Some operating systems may not have environment variables. On such systems, the @code{ENVIRON} array is empty (except for diff --git a/doc/gawktexi.in b/doc/gawktexi.in index 8e1f3a97..6fd9681a 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -13032,10 +13032,18 @@ it is 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, -@code{ENVIRON["HOME"]} might be @file{/home/arnold}. Changing this array -does not affect the environment passed on to any programs that -@command{awk} may spawn via redirection or the @code{system()} function. -@c (In a future version of @command{gawk}, it may do so.) +@code{ENVIRON["HOME"]} might be @file{/home/arnold}. + +For POSIX @command{awk}, changing this array does not affect the +environment passed on to any programs that @command{awk} may spawn via +redirection or the @code{system()} function. + +However, beginning with @value{PVERSION} 4.2, if not in POSIX +compatibility mode, @command{gawk} does update its own environment when +@code{ENVIRON} is changed, thus changing the environment seen by programs +that it creates. You should therefore be especially careful if you +modify @code{ENVIRON["PATH"]"}, which is the search path for finding +executable programs. Some operating systems may not have environment variables. On such systems, the @code{ENVIRON} array is empty (except for |