aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/ChangeLog7
-rw-r--r--doc/gawk.18
-rw-r--r--doc/gawk.info786
-rw-r--r--doc/gawk.texi26
-rw-r--r--doc/gawktexi.in26
5 files changed, 446 insertions, 407 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 3edc0f37..975accb3 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -206,7 +206,7 @@
2013-12-26 Arnold D. Robbins <arnold@skeeve.com>
* gawktexi.in: More minor additions / fixes.
- (Bugs): Add John Malmberg for VMS.
+ (Bugs): Add John Malmberg for VMS. Other minor edits.
2013-12-25 Arnold D. Robbins <arnold@skeeve.com>
@@ -280,6 +280,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.
diff --git a/doc/gawk.1 b/doc/gawk.1
index c7646557..e3275e87 100644
--- a/doc/gawk.1
+++ b/doc/gawk.1
@@ -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 55cc9829..8469667b 100644
--- a/doc/gawk.info
+++ b/doc/gawk.info
@@ -9808,10 +9808,18 @@ 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.
Some operating systems may not have environment variables. On
such systems, the `ENVIRON' array is empty (except for
@@ -30996,9 +31004,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 90)
+* dark corner, FILENAME variable <1>: Auto-set. (line 98)
* dark corner, FILENAME variable: Getline Notes. (line 19)
-* dark corner, FNR/NR variables: Auto-set. (line 301)
+* dark corner, FNR/NR variables: Auto-set. (line 309)
* dark corner, format-control characters: Control Letters. (line 18)
* dark corner, FS as null string: Single Character Fields.
(line 20)
@@ -31182,12 +31190,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 82)
* differences in awk and gawk, error messages: Special FD. (line 16)
* 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 115)
+* differences in awk and gawk, FUNCTAB variable: Auto-set. (line 123)
* differences in awk and gawk, function arguments (gawk): Calling Built-in.
(line 16)
* differences in awk and gawk, getline command: Getline. (line 19)
@@ -31210,7 +31218,7 @@ Index
(line 260)
* differences in awk and gawk, print/printf statements: Format Modifiers.
(line 13)
-* differences in awk and gawk, PROCINFO array: Auto-set. (line 128)
+* differences in awk and gawk, PROCINFO array: Auto-set. (line 136)
* differences in awk and gawk, read timeouts: Read Timeout. (line 6)
* differences in awk and gawk, record separators: awk split records.
(line 124)
@@ -31220,7 +31228,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 257)
+* differences in awk and gawk, RT variable: Auto-set. (line 265)
* differences in awk and gawk, single-character fields: Single Character Fields.
(line 6)
* differences in awk and gawk, split() function: String Functions.
@@ -31228,7 +31236,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 261)
+* differences in awk and gawk, SYMTAB variable: Auto-set. (line 269)
* differences in awk and gawk, TEXTDOMAIN variable: User-modified.
(line 152)
* differences in awk and gawk, trunc-mod operation: Arithmetic Ops.
@@ -31269,8 +31277,8 @@ Index
* 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 133)
-* effective user ID of gawk user: Auto-set. (line 137)
+* effective group ID of gawk user: Auto-set. (line 141)
+* effective user ID of gawk user: Auto-set. (line 145)
* egrep utility <1>: Egrep Program. (line 6)
* egrep utility: Bracket Expressions. (line 24)
* egrep.awk program: Egrep Program. (line 54)
@@ -31325,13 +31333,13 @@ Index
(line 11)
* EREs (Extended Regular Expressions): Bracket Expressions. (line 24)
* ERRNO variable <1>: TCP/IP Networking. (line 54)
-* ERRNO variable: Auto-set. (line 74)
+* ERRNO variable: Auto-set. (line 82)
* ERRNO variable, with BEGINFILE pattern: BEGINFILE/ENDFILE. (line 26)
* ERRNO variable, with close() function: Close Files And Pipes.
(line 139)
* ERRNO variable, with getline command: Getline. (line 19)
* error handling: Special FD. (line 16)
-* error handling, ERRNO variable and: Auto-set. (line 74)
+* 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)
@@ -31385,7 +31393,7 @@ Index
(line 6)
* extension API version: Extension Versioning.
(line 6)
-* extension API, version number: Auto-set. (line 224)
+* extension API, version number: Auto-set. (line 232)
* extension example: Extension Example. (line 6)
* extension registration: Registration Functions.
(line 6)
@@ -31464,7 +31472,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 46)
-* FILENAME variable <1>: Auto-set. (line 90)
+* FILENAME variable <1>: Auto-set. (line 98)
* FILENAME variable: Reading Files. (line 6)
* FILENAME variable, getline, setting with: Getline Notes. (line 19)
* filenames, assignments as: Ignoring Assigns. (line 6)
@@ -31534,9 +31542,9 @@ Index
* flush buffered output: I/O Functions. (line 28)
* fnmatch() extension function: Extension Sample Fnmatch.
(line 12)
-* FNR variable <1>: Auto-set. (line 99)
+* FNR variable <1>: Auto-set. (line 107)
* FNR variable: Records. (line 6)
-* FNR variable, changing: Auto-set. (line 301)
+* FNR variable, changing: Auto-set. (line 309)
* for statement: For Statement. (line 6)
* for statement, looping over arrays: Scanning an Array. (line 20)
* fork() extension function: Extension Sample Fork.
@@ -31586,7 +31594,7 @@ Index
* FSF (Free Software Foundation): Manual History. (line 6)
* fts() extension function: Extension Sample File Functions.
(line 61)
-* FUNCTAB array: Auto-set. (line 115)
+* FUNCTAB array: Auto-set. (line 123)
* function calls: Function Calls. (line 6)
* function calls, indirect: Indirect Calls. (line 6)
* function definition example: Function Example. (line 6)
@@ -31636,7 +31644,7 @@ Index
* G-d: Acknowledgments. (line 78)
* Garfinkle, Scott: Contributors. (line 34)
* gawk program, dynamic profiling: Profiling. (line 179)
-* gawk version: Auto-set. (line 199)
+* gawk version: Auto-set. (line 207)
* gawk, ARGIND variable in: Other Arguments. (line 12)
* gawk, awk and <1>: This Manual. (line 14)
* gawk, awk and: Preface. (line 23)
@@ -31657,7 +31665,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 74)
+* 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 139)
@@ -31674,7 +31682,7 @@ Index
* gawk, FPAT variable in <1>: User-modified. (line 43)
* gawk, FPAT variable in: Splitting By Content.
(line 27)
-* gawk, FUNCTAB array in: Auto-set. (line 115)
+* gawk, FUNCTAB array in: Auto-set. (line 123)
* 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.
@@ -31705,7 +31713,7 @@ Index
* gawk, OS/2 version of: PC Using. (line 16)
* gawk, PROCINFO array in <1>: Two-way I/O. (line 117)
* gawk, PROCINFO array in <2>: Time Functions. (line 47)
-* gawk, PROCINFO array in: Auto-set. (line 128)
+* gawk, PROCINFO array in: Auto-set. (line 136)
* gawk, regexp constants and: Using Constant Regexps.
(line 28)
* gawk, regular expressions, case sensitivity: Case-sensitivity.
@@ -31713,14 +31721,14 @@ Index
* gawk, regular expressions, operators: GNU Regexp Operators.
(line 6)
* gawk, regular expressions, precedence: Regexp Operators. (line 162)
-* gawk, RT variable in <1>: Auto-set. (line 257)
+* gawk, RT variable in <1>: Auto-set. (line 265)
* gawk, RT variable in <2>: Multiple Line. (line 129)
* gawk, RT variable in: awk split records. (line 124)
* gawk, See Also awk: Preface. (line 36)
* gawk, source code, obtaining: Getting. (line 6)
* gawk, splitting fields and: Constant Size. (line 88)
* gawk, string-translation functions: I18N Functions. (line 6)
-* gawk, SYMTAB array in: Auto-set. (line 261)
+* gawk, SYMTAB array in: Auto-set. (line 269)
* gawk, TEXTDOMAIN variable in: User-modified. (line 152)
* gawk, timestamps: Time Functions. (line 6)
* gawk, uses for: Preface. (line 36)
@@ -31807,7 +31815,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 172)
+* group ID of gawk user: Auto-set. (line 180)
* groups, information about: Group Functions. (line 6)
* gsub <1>: String Functions. (line 139)
* gsub: Using Constant Regexps.
@@ -32103,7 +32111,7 @@ Index
* mawk utility <3>: Concatenation. (line 36)
* mawk utility <4>: Getline/Pipe. (line 62)
* mawk utility: Escape Sequences. (line 124)
-* maximum precision supported by MPFR library: Auto-set. (line 213)
+* maximum precision supported by MPFR library: Auto-set. (line 221)
* McPhee, Patrick: Contributors. (line 100)
* message object files: Explaining gettext. (line 42)
* message object files, converting from portable object files: I18N Example.
@@ -32115,7 +32123,7 @@ Index
* messages from extensions: Printing Messages. (line 6)
* metacharacters in regular expressions: Regexp Operators. (line 6)
* metacharacters, escape sequences for: Escape Sequences. (line 130)
-* minimum precision supported by MPFR library: Auto-set. (line 216)
+* minimum precision supported by MPFR library: Auto-set. (line 224)
* mktime: Time Functions. (line 25)
* modifiers, in format specifiers: Format Modifiers. (line 6)
* monetary information, localization: Explaining gettext. (line 104)
@@ -32169,7 +32177,7 @@ Index
(line 47)
* nexti debugger command: Debugger Execution Control.
(line 49)
-* NF variable <1>: Auto-set. (line 104)
+* NF variable <1>: Auto-set. (line 112)
* NF variable: Fields. (line 33)
* NF variable, decrementing: Changing Fields. (line 107)
* ni debugger command (alias for nexti): Debugger Execution Control.
@@ -32178,9 +32186,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 123)
+* NR variable <1>: Auto-set. (line 131)
* NR variable: Records. (line 6)
-* NR variable, changing: Auto-set. (line 301)
+* NR variable, changing: Auto-set. (line 309)
* null strings <1>: Basic Data Typing. (line 26)
* null strings <2>: Truth Values. (line 6)
* null strings <3>: Regexp Field Splitting.
@@ -32295,7 +32303,7 @@ Index
* p debugger command (alias for print): Viewing And Changing Data.
(line 36)
* P1003.1 POSIX standard: Glossary. (line 454)
-* parent process ID of gawk process: Auto-set. (line 181)
+* parent process ID of gawk process: Auto-set. (line 189)
* parentheses (), in a profile: Profiling. (line 146)
* parentheses (), regexp operator: Regexp Operators. (line 80)
* password file: Passwd Functions. (line 16)
@@ -32460,24 +32468,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 175)
-* process ID of gawk process: Auto-set. (line 178)
+* process group idIDof gawk process: Auto-set. (line 183)
+* process ID of gawk process: Auto-set. (line 186)
* processes, two-way communications with: Two-way I/O. (line 23)
* 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 128)
+* PROCINFO array: Auto-set. (line 136)
* PROCINFO array, and communications via ptys: Two-way I/O. (line 117)
* 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 161)
-* PROCINFO array, uses: Auto-set. (line 234)
+* PROCINFO array, uses: Auto-set. (line 242)
* 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 146)
+* program identifiers: Auto-set. (line 154)
* program, definition of: Getting Started. (line 21)
* programmers, attractiveness of: Two-way I/O. (line 6)
* programming conventions, --non-decimal-data option: Nondecimal Data.
@@ -32637,7 +32645,7 @@ Index
* right shift: Bitwise Functions. (line 52)
* right shift, bitwise: Bitwise Functions. (line 32)
* Ritchie, Dennis: Basic Data Typing. (line 55)
-* RLENGTH variable: Auto-set. (line 244)
+* RLENGTH variable: Auto-set. (line 252)
* RLENGTH variable, match() function and: String Functions. (line 224)
* Robbins, Arnold <1>: Future Extensions. (line 6)
* Robbins, Arnold <2>: Bugs. (line 32)
@@ -32666,9 +32674,9 @@ Index
* RS variable: awk split records. (line 12)
* RS variable, multiline records and: Multiple Line. (line 17)
* rshift: Bitwise Functions. (line 52)
-* RSTART variable: Auto-set. (line 250)
+* RSTART variable: Auto-set. (line 258)
* RSTART variable, match() function and: String Functions. (line 224)
-* RT variable <1>: Auto-set. (line 257)
+* RT variable <1>: Auto-set. (line 265)
* RT variable <2>: Multiple Line. (line 129)
* RT variable: awk split records. (line 124)
* Rubin, Paul <1>: Contributors. (line 15)
@@ -32688,7 +32696,7 @@ Index
* scanning arrays: Scanning an Array. (line 6)
* scanning multidimensional arrays: Multiscanning. (line 11)
* Schorr, Andrew <1>: Contributors. (line 131)
-* Schorr, Andrew <2>: Auto-set. (line 284)
+* Schorr, Andrew <2>: Auto-set. (line 292)
* Schorr, Andrew: Acknowledgments. (line 60)
* Schreiber, Bert: Acknowledgments. (line 38)
* Schreiber, Rita: Acknowledgments. (line 38)
@@ -32776,7 +32784,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 299)
+* sidebar, Changing NR and FNR: Auto-set. (line 307)
* sidebar, Controlling Output Buffering with system(): I/O Functions.
(line 138)
* sidebar, Escape Sequences for Metacharacters: Escape Sequences.
@@ -32938,9 +32946,9 @@ Index
* substr: String Functions. (line 479)
* substring: String Functions. (line 479)
* Sumner, Andrew: Other Versions. (line 64)
-* supplementary groups of gawk process: Auto-set. (line 229)
+* supplementary groups of gawk process: Auto-set. (line 237)
* switch statement: Switch Statement. (line 6)
-* SYMTAB array: Auto-set. (line 261)
+* SYMTAB array: Auto-set. (line 269)
* syntactic ambiguity: /= operator vs. /=.../ regexp constant: Assignment Ops.
(line 148)
* system: I/O Functions. (line 75)
@@ -33118,10 +33126,10 @@ Index
* variables, uninitialized, as array subscripts: Uninitialized Subscripts.
(line 6)
* variables, user-defined: Variables. (line 6)
-* version of gawk: Auto-set. (line 199)
-* version of gawk extension API: Auto-set. (line 224)
-* version of GNU MP library: Auto-set. (line 210)
-* version of GNU MPFR library: Auto-set. (line 206)
+* 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)
* vertical bar (|): Regexp Operators. (line 70)
* vertical bar (|), | operator (I/O) <1>: Precedence. (line 65)
* vertical bar (|), | operator (I/O): Getline/Pipe. (line 9)
@@ -33400,345 +33408,345 @@ Node: Built-in Variables409273
Node: User-modified410369
Ref: User-modified-Footnote-1418054
Node: Auto-set418116
-Ref: Auto-set-Footnote-1430681
-Ref: Auto-set-Footnote-2430886
-Node: ARGC and ARGV430942
-Node: Arrays434796
-Node: Array Basics436294
-Node: Array Intro437120
-Ref: figure-array-elements439093
-Node: Reference to Elements441500
-Node: Assigning Elements443773
-Node: Array Example444264
-Node: Scanning an Array445996
-Node: Controlling Scanning449011
-Ref: Controlling Scanning-Footnote-1454184
-Node: Delete454500
-Ref: Delete-Footnote-1457265
-Node: Numeric Array Subscripts457322
-Node: Uninitialized Subscripts459505
-Node: Multidimensional461130
-Node: Multiscanning464223
-Node: Arrays of Arrays465812
-Node: Functions470452
-Node: Built-in471271
-Node: Calling Built-in472349
-Node: Numeric Functions474337
-Ref: Numeric Functions-Footnote-1478171
-Ref: Numeric Functions-Footnote-2478528
-Ref: Numeric Functions-Footnote-3478576
-Node: String Functions478845
-Ref: String Functions-Footnote-1501856
-Ref: String Functions-Footnote-2501985
-Ref: String Functions-Footnote-3502233
-Node: Gory Details502320
-Ref: table-sub-escapes503989
-Ref: table-sub-posix-92505343
-Ref: table-sub-proposed506694
-Ref: table-posix-sub508048
-Ref: table-gensub-escapes509593
-Ref: Gory Details-Footnote-1510769
-Ref: Gory Details-Footnote-2510820
-Node: I/O Functions510971
-Ref: I/O Functions-Footnote-1518094
-Node: Time Functions518241
-Ref: Time Functions-Footnote-1528705
-Ref: Time Functions-Footnote-2528773
-Ref: Time Functions-Footnote-3528931
-Ref: Time Functions-Footnote-4529042
-Ref: Time Functions-Footnote-5529154
-Ref: Time Functions-Footnote-6529381
-Node: Bitwise Functions529647
-Ref: table-bitwise-ops530209
-Ref: Bitwise Functions-Footnote-1534454
-Node: Type Functions534638
-Node: I18N Functions535780
-Node: User-defined537425
-Node: Definition Syntax538229
-Ref: Definition Syntax-Footnote-1543154
-Node: Function Example543223
-Ref: Function Example-Footnote-1545867
-Node: Function Caveats545889
-Node: Calling A Function546407
-Node: Variable Scope547362
-Node: Pass By Value/Reference550350
-Node: Return Statement553858
-Node: Dynamic Typing556842
-Node: Indirect Calls557771
-Node: Library Functions567458
-Ref: Library Functions-Footnote-1570971
-Ref: Library Functions-Footnote-2571114
-Node: Library Names571285
-Ref: Library Names-Footnote-1574758
-Ref: Library Names-Footnote-2574978
-Node: General Functions575064
-Node: Strtonum Function576092
-Node: Assert Function579022
-Node: Round Function582348
-Node: Cliff Random Function583889
-Node: Ordinal Functions584905
-Ref: Ordinal Functions-Footnote-1587982
-Ref: Ordinal Functions-Footnote-2588234
-Node: Join Function588445
-Ref: Join Function-Footnote-1590216
-Node: Getlocaltime Function590416
-Node: Readfile Function594152
-Node: Data File Management595991
-Node: Filetrans Function596623
-Node: Rewind Function600692
-Node: File Checking602079
-Ref: File Checking-Footnote-1603211
-Node: Empty Files603412
-Node: Ignoring Assigns605642
-Node: Getopt Function607196
-Ref: Getopt Function-Footnote-1618499
-Node: Passwd Functions618702
-Ref: Passwd Functions-Footnote-1627681
-Node: Group Functions627769
-Ref: Group Functions-Footnote-1635711
-Node: Walking Arrays635924
-Node: Sample Programs638060
-Node: Running Examples638734
-Node: Clones639462
-Node: Cut Program640686
-Node: Egrep Program650539
-Ref: Egrep Program-Footnote-1658510
-Node: Id Program658620
-Node: Split Program662284
-Ref: Split Program-Footnote-1665822
-Node: Tee Program665950
-Node: Uniq Program668757
-Node: Wc Program676187
-Ref: Wc Program-Footnote-1680455
-Ref: Wc Program-Footnote-2680655
-Node: Miscellaneous Programs680747
-Node: Dupword Program681935
-Node: Alarm Program683966
-Node: Translate Program688773
-Ref: Translate Program-Footnote-1693164
-Ref: Translate Program-Footnote-2693434
-Node: Labels Program693568
-Ref: Labels Program-Footnote-1696939
-Node: Word Sorting697023
-Node: History Sorting701066
-Node: Extract Program702902
-Ref: Extract Program-Footnote-1710432
-Node: Simple Sed710561
-Node: Igawk Program713623
-Ref: Igawk Program-Footnote-1728798
-Ref: Igawk Program-Footnote-2728999
-Node: Anagram Program729137
-Node: Signature Program732205
-Node: Advanced Features733452
-Node: Nondecimal Data735338
-Node: Array Sorting736915
-Node: Controlling Array Traversal737612
-Node: Array Sorting Functions745892
-Ref: Array Sorting Functions-Footnote-1749799
-Node: Two-way I/O749993
-Ref: Two-way I/O-Footnote-1755509
-Node: TCP/IP Networking755591
-Node: Profiling758435
-Node: Internationalization765943
-Node: I18N and L10N767368
-Node: Explaining gettext768054
-Ref: Explaining gettext-Footnote-1773194
-Ref: Explaining gettext-Footnote-2773378
-Node: Programmer i18n773543
-Node: Translator i18n777768
-Node: String Extraction778562
-Ref: String Extraction-Footnote-1779523
-Node: Printf Ordering779609
-Ref: Printf Ordering-Footnote-1782391
-Node: I18N Portability782455
-Ref: I18N Portability-Footnote-1784904
-Node: I18N Example784967
-Ref: I18N Example-Footnote-1787689
-Node: Gawk I18N787761
-Node: Debugger788382
-Node: Debugging789353
-Node: Debugging Concepts789794
-Node: Debugging Terms791650
-Node: Awk Debugging794247
-Node: Sample Debugging Session795139
-Node: Debugger Invocation795659
-Node: Finding The Bug796992
-Node: List of Debugger Commands803474
-Node: Breakpoint Control804806
-Node: Debugger Execution Control808470
-Node: Viewing And Changing Data811830
-Node: Execution Stack815188
-Node: Debugger Info816701
-Node: Miscellaneous Debugger Commands820695
-Node: Readline Support825879
-Node: Limitations826771
-Node: Arbitrary Precision Arithmetic829019
-Ref: Arbitrary Precision Arithmetic-Footnote-1830668
-Node: General Arithmetic830816
-Node: Floating Point Issues832536
-Node: String Conversion Precision833417
-Ref: String Conversion Precision-Footnote-1835122
-Node: Unexpected Results835231
-Node: POSIX Floating Point Problems837384
-Ref: POSIX Floating Point Problems-Footnote-1841205
-Node: Integer Programming841243
-Node: Floating-point Programming843054
-Ref: Floating-point Programming-Footnote-1849382
-Ref: Floating-point Programming-Footnote-2849652
-Node: Floating-point Representation849916
-Node: Floating-point Context851081
-Ref: table-ieee-formats851920
-Node: Rounding Mode853304
-Ref: table-rounding-modes853783
-Ref: Rounding Mode-Footnote-1856798
-Node: Gawk and MPFR856977
-Node: Arbitrary Precision Floats858386
-Ref: Arbitrary Precision Floats-Footnote-1860829
-Node: Setting Precision861150
-Ref: table-predefined-precision-strings861834
-Node: Setting Rounding Mode863979
-Ref: table-gawk-rounding-modes864383
-Node: Floating-point Constants865570
-Node: Changing Precision867022
-Ref: Changing Precision-Footnote-1868414
-Node: Exact Arithmetic868588
-Node: Arbitrary Precision Integers871722
-Ref: Arbitrary Precision Integers-Footnote-1874737
-Node: Dynamic Extensions874884
-Node: Extension Intro876342
-Node: Plugin License877607
-Node: Extension Mechanism Outline878292
-Ref: figure-load-extension878716
-Ref: figure-load-new-function880201
-Ref: figure-call-new-function881203
-Node: Extension API Description883187
-Node: Extension API Functions Introduction884637
-Node: General Data Types889503
-Ref: General Data Types-Footnote-1895196
-Node: Requesting Values895495
-Ref: table-value-types-returned896232
-Node: Memory Allocation Functions897190
-Ref: Memory Allocation Functions-Footnote-1899936
-Node: Constructor Functions900032
-Node: Registration Functions901790
-Node: Extension Functions902475
-Node: Exit Callback Functions904777
-Node: Extension Version String906026
-Node: Input Parsers906676
-Node: Output Wrappers916479
-Node: Two-way processors920995
-Node: Printing Messages923198
-Ref: Printing Messages-Footnote-1924275
-Node: Updating `ERRNO'924427
-Node: Accessing Parameters925166
-Node: Symbol Table Access926396
-Node: Symbol table by name926910
-Node: Symbol table by cookie928886
-Ref: Symbol table by cookie-Footnote-1933019
-Node: Cached values933082
-Ref: Cached values-Footnote-1936587
-Node: Array Manipulation936678
-Ref: Array Manipulation-Footnote-1937776
-Node: Array Data Types937815
-Ref: Array Data Types-Footnote-1940518
-Node: Array Functions940610
-Node: Flattening Arrays944484
-Node: Creating Arrays951336
-Node: Extension API Variables956067
-Node: Extension Versioning956703
-Node: Extension API Informational Variables958604
-Node: Extension API Boilerplate959690
-Node: Finding Extensions963494
-Node: Extension Example964054
-Node: Internal File Description964784
-Node: Internal File Ops968875
-Ref: Internal File Ops-Footnote-1980421
-Node: Using Internal File Ops980561
-Ref: Using Internal File Ops-Footnote-1982908
-Node: Extension Samples983174
-Node: Extension Sample File Functions984698
-Node: Extension Sample Fnmatch992265
-Node: Extension Sample Fork993744
-Node: Extension Sample Inplace994957
-Node: Extension Sample Ord996735
-Node: Extension Sample Readdir997571
-Ref: table-readdir-file-types998426
-Node: Extension Sample Revout999225
-Node: Extension Sample Rev2way999816
-Node: Extension Sample Read write array1000557
-Node: Extension Sample Readfile1002436
-Node: Extension Sample API Tests1003536
-Node: Extension Sample Time1004061
-Node: gawkextlib1005376
-Node: Language History1008157
-Node: V7/SVR3.11009750
-Node: SVR41012070
-Node: POSIX1013512
-Node: BTL1014898
-Node: POSIX/GNU1015632
-Node: Feature History1021231
-Node: Common Extensions1034207
-Node: Ranges and Locales1035519
-Ref: Ranges and Locales-Footnote-11040136
-Ref: Ranges and Locales-Footnote-21040163
-Ref: Ranges and Locales-Footnote-31040397
-Node: Contributors1040618
-Node: Installation1045999
-Node: Gawk Distribution1046893
-Node: Getting1047377
-Node: Extracting1048203
-Node: Distribution contents1049895
-Node: Unix Installation1055616
-Node: Quick Installation1056233
-Node: Additional Configuration Options1058679
-Node: Configuration Philosophy1060415
-Node: Non-Unix Installation1062769
-Node: PC Installation1063227
-Node: PC Binary Installation1064538
-Node: PC Compiling1066386
-Node: PC Testing1069346
-Node: PC Using1070522
-Node: Cygwin1074690
-Node: MSYS1075499
-Node: VMS Installation1076013
-Node: VMS Compilation1076809
-Ref: VMS Compilation-Footnote-11078061
-Node: VMS Dynamic Extensions1078119
-Node: VMS Installation Details1079492
-Node: VMS Running1081743
-Node: VMS GNV1084577
-Node: VMS Old Gawk1085300
-Node: Bugs1085770
-Node: Other Versions1089688
-Node: Notes1095772
-Node: Compatibility Mode1096572
-Node: Additions1097355
-Node: Accessing The Source1098282
-Node: Adding Code1099722
-Node: New Ports1105767
-Node: Derived Files1109902
-Ref: Derived Files-Footnote-11115223
-Ref: Derived Files-Footnote-21115257
-Ref: Derived Files-Footnote-31115857
-Node: Future Extensions1115955
-Node: Implementation Limitations1116538
-Node: Extension Design1117786
-Node: Old Extension Problems1118940
-Ref: Old Extension Problems-Footnote-11120448
-Node: Extension New Mechanism Goals1120505
-Ref: Extension New Mechanism Goals-Footnote-11123870
-Node: Extension Other Design Decisions1124056
-Node: Extension Future Growth1126162
-Node: Old Extension Mechanism1126998
-Node: Basic Concepts1128738
-Node: Basic High Level1129419
-Ref: figure-general-flow1129691
-Ref: figure-process-flow1130290
-Ref: Basic High Level-Footnote-11133519
-Node: Basic Data Typing1133704
-Node: Glossary1137059
-Node: Copying1162290
-Node: GNU Free Documentation License1199846
-Node: Index1224982
+Ref: Auto-set-Footnote-1431018
+Ref: Auto-set-Footnote-2431223
+Node: ARGC and ARGV431279
+Node: Arrays435133
+Node: Array Basics436631
+Node: Array Intro437457
+Ref: figure-array-elements439430
+Node: Reference to Elements441837
+Node: Assigning Elements444110
+Node: Array Example444601
+Node: Scanning an Array446333
+Node: Controlling Scanning449348
+Ref: Controlling Scanning-Footnote-1454521
+Node: Delete454837
+Ref: Delete-Footnote-1457602
+Node: Numeric Array Subscripts457659
+Node: Uninitialized Subscripts459842
+Node: Multidimensional461467
+Node: Multiscanning464560
+Node: Arrays of Arrays466149
+Node: Functions470789
+Node: Built-in471608
+Node: Calling Built-in472686
+Node: Numeric Functions474674
+Ref: Numeric Functions-Footnote-1478508
+Ref: Numeric Functions-Footnote-2478865
+Ref: Numeric Functions-Footnote-3478913
+Node: String Functions479182
+Ref: String Functions-Footnote-1502193
+Ref: String Functions-Footnote-2502322
+Ref: String Functions-Footnote-3502570
+Node: Gory Details502657
+Ref: table-sub-escapes504326
+Ref: table-sub-posix-92505680
+Ref: table-sub-proposed507031
+Ref: table-posix-sub508385
+Ref: table-gensub-escapes509930
+Ref: Gory Details-Footnote-1511106
+Ref: Gory Details-Footnote-2511157
+Node: I/O Functions511308
+Ref: I/O Functions-Footnote-1518431
+Node: Time Functions518578
+Ref: Time Functions-Footnote-1529042
+Ref: Time Functions-Footnote-2529110
+Ref: Time Functions-Footnote-3529268
+Ref: Time Functions-Footnote-4529379
+Ref: Time Functions-Footnote-5529491
+Ref: Time Functions-Footnote-6529718
+Node: Bitwise Functions529984
+Ref: table-bitwise-ops530546
+Ref: Bitwise Functions-Footnote-1534791
+Node: Type Functions534975
+Node: I18N Functions536117
+Node: User-defined537762
+Node: Definition Syntax538566
+Ref: Definition Syntax-Footnote-1543491
+Node: Function Example543560
+Ref: Function Example-Footnote-1546204
+Node: Function Caveats546226
+Node: Calling A Function546744
+Node: Variable Scope547699
+Node: Pass By Value/Reference550687
+Node: Return Statement554195
+Node: Dynamic Typing557179
+Node: Indirect Calls558108
+Node: Library Functions567795
+Ref: Library Functions-Footnote-1571308
+Ref: Library Functions-Footnote-2571451
+Node: Library Names571622
+Ref: Library Names-Footnote-1575095
+Ref: Library Names-Footnote-2575315
+Node: General Functions575401
+Node: Strtonum Function576429
+Node: Assert Function579359
+Node: Round Function582685
+Node: Cliff Random Function584226
+Node: Ordinal Functions585242
+Ref: Ordinal Functions-Footnote-1588319
+Ref: Ordinal Functions-Footnote-2588571
+Node: Join Function588782
+Ref: Join Function-Footnote-1590553
+Node: Getlocaltime Function590753
+Node: Readfile Function594489
+Node: Data File Management596328
+Node: Filetrans Function596960
+Node: Rewind Function601029
+Node: File Checking602416
+Ref: File Checking-Footnote-1603548
+Node: Empty Files603749
+Node: Ignoring Assigns605979
+Node: Getopt Function607533
+Ref: Getopt Function-Footnote-1618836
+Node: Passwd Functions619039
+Ref: Passwd Functions-Footnote-1628018
+Node: Group Functions628106
+Ref: Group Functions-Footnote-1636048
+Node: Walking Arrays636261
+Node: Sample Programs638397
+Node: Running Examples639071
+Node: Clones639799
+Node: Cut Program641023
+Node: Egrep Program650876
+Ref: Egrep Program-Footnote-1658847
+Node: Id Program658957
+Node: Split Program662621
+Ref: Split Program-Footnote-1666159
+Node: Tee Program666287
+Node: Uniq Program669094
+Node: Wc Program676524
+Ref: Wc Program-Footnote-1680792
+Ref: Wc Program-Footnote-2680992
+Node: Miscellaneous Programs681084
+Node: Dupword Program682272
+Node: Alarm Program684303
+Node: Translate Program689110
+Ref: Translate Program-Footnote-1693501
+Ref: Translate Program-Footnote-2693771
+Node: Labels Program693905
+Ref: Labels Program-Footnote-1697276
+Node: Word Sorting697360
+Node: History Sorting701403
+Node: Extract Program703239
+Ref: Extract Program-Footnote-1710769
+Node: Simple Sed710898
+Node: Igawk Program713960
+Ref: Igawk Program-Footnote-1729135
+Ref: Igawk Program-Footnote-2729336
+Node: Anagram Program729474
+Node: Signature Program732542
+Node: Advanced Features733789
+Node: Nondecimal Data735675
+Node: Array Sorting737252
+Node: Controlling Array Traversal737949
+Node: Array Sorting Functions746229
+Ref: Array Sorting Functions-Footnote-1750136
+Node: Two-way I/O750330
+Ref: Two-way I/O-Footnote-1755846
+Node: TCP/IP Networking755928
+Node: Profiling758772
+Node: Internationalization766280
+Node: I18N and L10N767705
+Node: Explaining gettext768391
+Ref: Explaining gettext-Footnote-1773531
+Ref: Explaining gettext-Footnote-2773715
+Node: Programmer i18n773880
+Node: Translator i18n778105
+Node: String Extraction778899
+Ref: String Extraction-Footnote-1779860
+Node: Printf Ordering779946
+Ref: Printf Ordering-Footnote-1782728
+Node: I18N Portability782792
+Ref: I18N Portability-Footnote-1785241
+Node: I18N Example785304
+Ref: I18N Example-Footnote-1788026
+Node: Gawk I18N788098
+Node: Debugger788719
+Node: Debugging789690
+Node: Debugging Concepts790131
+Node: Debugging Terms791987
+Node: Awk Debugging794584
+Node: Sample Debugging Session795476
+Node: Debugger Invocation795996
+Node: Finding The Bug797329
+Node: List of Debugger Commands803811
+Node: Breakpoint Control805143
+Node: Debugger Execution Control808807
+Node: Viewing And Changing Data812167
+Node: Execution Stack815525
+Node: Debugger Info817038
+Node: Miscellaneous Debugger Commands821032
+Node: Readline Support826216
+Node: Limitations827108
+Node: Arbitrary Precision Arithmetic829356
+Ref: Arbitrary Precision Arithmetic-Footnote-1831005
+Node: General Arithmetic831153
+Node: Floating Point Issues832873
+Node: String Conversion Precision833754
+Ref: String Conversion Precision-Footnote-1835459
+Node: Unexpected Results835568
+Node: POSIX Floating Point Problems837721
+Ref: POSIX Floating Point Problems-Footnote-1841542
+Node: Integer Programming841580
+Node: Floating-point Programming843391
+Ref: Floating-point Programming-Footnote-1849719
+Ref: Floating-point Programming-Footnote-2849989
+Node: Floating-point Representation850253
+Node: Floating-point Context851418
+Ref: table-ieee-formats852257
+Node: Rounding Mode853641
+Ref: table-rounding-modes854120
+Ref: Rounding Mode-Footnote-1857135
+Node: Gawk and MPFR857314
+Node: Arbitrary Precision Floats858723
+Ref: Arbitrary Precision Floats-Footnote-1861166
+Node: Setting Precision861487
+Ref: table-predefined-precision-strings862171
+Node: Setting Rounding Mode864316
+Ref: table-gawk-rounding-modes864720
+Node: Floating-point Constants865907
+Node: Changing Precision867359
+Ref: Changing Precision-Footnote-1868751
+Node: Exact Arithmetic868925
+Node: Arbitrary Precision Integers872059
+Ref: Arbitrary Precision Integers-Footnote-1875074
+Node: Dynamic Extensions875221
+Node: Extension Intro876679
+Node: Plugin License877944
+Node: Extension Mechanism Outline878629
+Ref: figure-load-extension879053
+Ref: figure-load-new-function880538
+Ref: figure-call-new-function881540
+Node: Extension API Description883524
+Node: Extension API Functions Introduction884974
+Node: General Data Types889840
+Ref: General Data Types-Footnote-1895533
+Node: Requesting Values895832
+Ref: table-value-types-returned896569
+Node: Memory Allocation Functions897527
+Ref: Memory Allocation Functions-Footnote-1900273
+Node: Constructor Functions900369
+Node: Registration Functions902127
+Node: Extension Functions902812
+Node: Exit Callback Functions905114
+Node: Extension Version String906363
+Node: Input Parsers907013
+Node: Output Wrappers916816
+Node: Two-way processors921332
+Node: Printing Messages923535
+Ref: Printing Messages-Footnote-1924612
+Node: Updating `ERRNO'924764
+Node: Accessing Parameters925503
+Node: Symbol Table Access926733
+Node: Symbol table by name927247
+Node: Symbol table by cookie929223
+Ref: Symbol table by cookie-Footnote-1933356
+Node: Cached values933419
+Ref: Cached values-Footnote-1936924
+Node: Array Manipulation937015
+Ref: Array Manipulation-Footnote-1938113
+Node: Array Data Types938152
+Ref: Array Data Types-Footnote-1940855
+Node: Array Functions940947
+Node: Flattening Arrays944821
+Node: Creating Arrays951673
+Node: Extension API Variables956404
+Node: Extension Versioning957040
+Node: Extension API Informational Variables958941
+Node: Extension API Boilerplate960027
+Node: Finding Extensions963831
+Node: Extension Example964391
+Node: Internal File Description965121
+Node: Internal File Ops969212
+Ref: Internal File Ops-Footnote-1980758
+Node: Using Internal File Ops980898
+Ref: Using Internal File Ops-Footnote-1983245
+Node: Extension Samples983511
+Node: Extension Sample File Functions985035
+Node: Extension Sample Fnmatch992602
+Node: Extension Sample Fork994081
+Node: Extension Sample Inplace995294
+Node: Extension Sample Ord997072
+Node: Extension Sample Readdir997908
+Ref: table-readdir-file-types998763
+Node: Extension Sample Revout999562
+Node: Extension Sample Rev2way1000153
+Node: Extension Sample Read write array1000894
+Node: Extension Sample Readfile1002773
+Node: Extension Sample API Tests1003873
+Node: Extension Sample Time1004398
+Node: gawkextlib1005713
+Node: Language History1008494
+Node: V7/SVR3.11010087
+Node: SVR41012407
+Node: POSIX1013849
+Node: BTL1015235
+Node: POSIX/GNU1015969
+Node: Feature History1021568
+Node: Common Extensions1034544
+Node: Ranges and Locales1035856
+Ref: Ranges and Locales-Footnote-11040473
+Ref: Ranges and Locales-Footnote-21040500
+Ref: Ranges and Locales-Footnote-31040734
+Node: Contributors1040955
+Node: Installation1046336
+Node: Gawk Distribution1047230
+Node: Getting1047714
+Node: Extracting1048540
+Node: Distribution contents1050232
+Node: Unix Installation1055953
+Node: Quick Installation1056570
+Node: Additional Configuration Options1059016
+Node: Configuration Philosophy1060752
+Node: Non-Unix Installation1063106
+Node: PC Installation1063564
+Node: PC Binary Installation1064875
+Node: PC Compiling1066723
+Node: PC Testing1069683
+Node: PC Using1070859
+Node: Cygwin1075027
+Node: MSYS1075836
+Node: VMS Installation1076350
+Node: VMS Compilation1077146
+Ref: VMS Compilation-Footnote-11078398
+Node: VMS Dynamic Extensions1078456
+Node: VMS Installation Details1079829
+Node: VMS Running1082080
+Node: VMS GNV1084914
+Node: VMS Old Gawk1085637
+Node: Bugs1086107
+Node: Other Versions1090025
+Node: Notes1096109
+Node: Compatibility Mode1096909
+Node: Additions1097692
+Node: Accessing The Source1098619
+Node: Adding Code1100059
+Node: New Ports1106104
+Node: Derived Files1110239
+Ref: Derived Files-Footnote-11115560
+Ref: Derived Files-Footnote-21115594
+Ref: Derived Files-Footnote-31116194
+Node: Future Extensions1116292
+Node: Implementation Limitations1116875
+Node: Extension Design1118123
+Node: Old Extension Problems1119277
+Ref: Old Extension Problems-Footnote-11120785
+Node: Extension New Mechanism Goals1120842
+Ref: Extension New Mechanism Goals-Footnote-11124207
+Node: Extension Other Design Decisions1124393
+Node: Extension Future Growth1126499
+Node: Old Extension Mechanism1127335
+Node: Basic Concepts1129075
+Node: Basic High Level1129756
+Ref: figure-general-flow1130028
+Ref: figure-process-flow1130627
+Ref: Basic High Level-Footnote-11133856
+Node: Basic Data Typing1134041
+Node: Glossary1137396
+Node: Copying1162627
+Node: GNU Free Documentation License1200183
+Node: Index1225319

End Tag Table
diff --git a/doc/gawk.texi b/doc/gawk.texi
index e0222443..ab1b5259 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -14083,10 +14083,18 @@ next file is opened.
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 @code{"/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.
-(In a future version of @command{gawk}, it may do so.)
+@code{ENVIRON["HOME"]} might be @code{/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 version 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
@@ -36956,9 +36964,10 @@ mail at the Internet address noted previously.
If you find bugs in one of the non-Unix ports of @command{gawk}, please send
an electronic mail message to the person who maintains that port. They
-are named in the following list, as well as in the @file{README} file in the @command{gawk}
-distribution. Information in the @file{README} file should be considered
-authoritative if it conflicts with this @value{DOCUMENT}.
+are named in the following list, as well as in the @file{README} file
+in the @command{gawk} distribution. Information in the @file{README}
+file should be considered authoritative if it conflicts with this
+@value{DOCUMENT}.
The people maintaining the non-Unix ports of @command{gawk} are
as follows:
@@ -36986,7 +36995,8 @@ John Malmberg, @EMAIL{wb8tyw@@qsl.net,wb8tyw at qsl.net}.
@end multitable
If your bug is also reproducible under Unix, please send a copy of your
-report to the @EMAIL{bug-gawk@@gnu.org,bug-gawk at gnu dot org} email list as well.
+report to the @EMAIL{bug-gawk@@gnu.org,bug-gawk at gnu dot org} email
+list as well.
@c ENDOFRANGE dbugg
@c ENDOFRANGE tblgawb
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index 3599b727..5c60d3b3 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -13463,10 +13463,18 @@ next file is opened.
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 @code{"/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.
-(In a future version of @command{gawk}, it may do so.)
+@code{ENVIRON["HOME"]} might be @code{/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 version 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
@@ -36100,9 +36108,10 @@ mail at the Internet address noted previously.
If you find bugs in one of the non-Unix ports of @command{gawk}, please send
an electronic mail message to the person who maintains that port. They
-are named in the following list, as well as in the @file{README} file in the @command{gawk}
-distribution. Information in the @file{README} file should be considered
-authoritative if it conflicts with this @value{DOCUMENT}.
+are named in the following list, as well as in the @file{README} file
+in the @command{gawk} distribution. Information in the @file{README}
+file should be considered authoritative if it conflicts with this
+@value{DOCUMENT}.
The people maintaining the non-Unix ports of @command{gawk} are
as follows:
@@ -36130,7 +36139,8 @@ John Malmberg, @EMAIL{wb8tyw@@qsl.net,wb8tyw at qsl.net}.
@end multitable
If your bug is also reproducible under Unix, please send a copy of your
-report to the @EMAIL{bug-gawk@@gnu.org,bug-gawk at gnu dot org} email list as well.
+report to the @EMAIL{bug-gawk@@gnu.org,bug-gawk at gnu dot org} email
+list as well.
@c ENDOFRANGE dbugg
@c ENDOFRANGE tblgawb