diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ChangeLog | 7 | ||||
-rw-r--r-- | doc/gawk.1 | 10 | ||||
-rw-r--r-- | doc/gawk.info | 735 | ||||
-rw-r--r-- | doc/gawk.texi | 26 | ||||
-rw-r--r-- | doc/gawktexi.in | 26 |
5 files changed, 422 insertions, 382 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog index dce9658b..6a1355a7 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -25,7 +25,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> @@ -99,6 +99,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 6f88bf02..db547191 100644 --- a/doc/gawk.info +++ b/doc/gawk.info @@ -9713,9 +9713,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 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 @@ -30720,9 +30729,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) @@ -30891,12 +30900,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) @@ -30919,14 +30928,14 @@ Index (line 256) * 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. @@ -30935,7 +30944,7 @@ Index * differences in awk and gawk, strings, storing: Records. (line 191) * differences in awk and gawk, strtonum() function (gawk): String Functions. (line 401) -* 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. @@ -31016,13 +31025,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) @@ -31135,7 +31144,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) @@ -31203,9 +31212,9 @@ Index * floating-point, VAX/VMS: VMS Running. (line 51) * 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. @@ -31252,7 +31261,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) @@ -31321,7 +31330,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) @@ -31338,7 +31347,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. @@ -31369,7 +31378,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. @@ -31377,7 +31386,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) @@ -31386,7 +31395,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) @@ -31791,16 +31800,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. @@ -32080,7 +32089,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) @@ -32234,7 +32243,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 220) * Robbins, Arnold <1>: Future Extensions. (line 6) * Robbins, Arnold <2>: Bugs. (line 32) @@ -32261,9 +32270,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 220) -* 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) @@ -32346,7 +32355,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. @@ -32488,7 +32497,7 @@ Index * substr() function: String Functions. (line 478) * 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) @@ -32931,338 +32940,338 @@ Node: Built-in Variables404559 Node: User-modified405654 Ref: User-modified-Footnote-1414012 Node: Auto-set414074 -Ref: Auto-set-Footnote-1427152 -Ref: Auto-set-Footnote-2427357 -Node: ARGC and ARGV427413 -Node: Arrays431264 -Node: Array Basics432769 -Node: Array Intro433595 -Node: Reference to Elements437912 -Node: Assigning Elements440182 -Node: Array Example440673 -Node: Scanning an Array442405 -Node: Controlling Scanning444719 -Ref: Controlling Scanning-Footnote-1449806 -Node: Delete450122 -Ref: Delete-Footnote-1452887 -Node: Numeric Array Subscripts452944 -Node: Uninitialized Subscripts455127 -Node: Multidimensional456754 -Node: Multiscanning459847 -Node: Arrays of Arrays461436 -Node: Functions466076 -Node: Built-in466895 -Node: Calling Built-in467973 -Node: Numeric Functions469961 -Ref: Numeric Functions-Footnote-1473793 -Ref: Numeric Functions-Footnote-2474150 -Ref: Numeric Functions-Footnote-3474198 -Node: String Functions474467 -Ref: String Functions-Footnote-1497387 -Ref: String Functions-Footnote-2497516 -Ref: String Functions-Footnote-3497764 -Node: Gory Details497851 -Ref: table-sub-escapes499530 -Ref: table-sub-posix-92500884 -Ref: table-sub-proposed502235 -Ref: table-posix-sub503589 -Ref: table-gensub-escapes505134 -Ref: Gory Details-Footnote-1506310 -Ref: Gory Details-Footnote-2506361 -Node: I/O Functions506512 -Ref: I/O Functions-Footnote-1513497 -Node: Time Functions513644 -Ref: Time Functions-Footnote-1524577 -Ref: Time Functions-Footnote-2524645 -Ref: Time Functions-Footnote-3524803 -Ref: Time Functions-Footnote-4524914 -Ref: Time Functions-Footnote-5525026 -Ref: Time Functions-Footnote-6525253 -Node: Bitwise Functions525519 -Ref: table-bitwise-ops526081 -Ref: Bitwise Functions-Footnote-1530302 -Node: Type Functions530486 -Node: I18N Functions531637 -Node: User-defined533264 -Node: Definition Syntax534068 -Ref: Definition Syntax-Footnote-1538978 -Node: Function Example539047 -Node: Function Caveats541641 -Node: Calling A Function542062 -Node: Variable Scope543177 -Node: Pass By Value/Reference546140 -Node: Return Statement549648 -Node: Dynamic Typing552629 -Node: Indirect Calls553560 -Node: Library Functions563245 -Ref: Library Functions-Footnote-1566758 -Ref: Library Functions-Footnote-2566901 -Node: Library Names567072 -Ref: Library Names-Footnote-1570543 -Ref: Library Names-Footnote-2570763 -Node: General Functions570849 -Node: Strtonum Function571877 -Node: Assert Function574807 -Node: Round Function578133 -Node: Cliff Random Function579676 -Node: Ordinal Functions580692 -Ref: Ordinal Functions-Footnote-1583762 -Ref: Ordinal Functions-Footnote-2584014 -Node: Join Function584223 -Ref: Join Function-Footnote-1585994 -Node: Getlocaltime Function586194 -Node: Readfile Function589935 -Node: Data File Management591774 -Node: Filetrans Function592406 -Node: Rewind Function596475 -Node: File Checking597862 -Node: Empty Files598956 -Node: Ignoring Assigns601186 -Node: Getopt Function602739 -Ref: Getopt Function-Footnote-1614042 -Node: Passwd Functions614245 -Ref: Passwd Functions-Footnote-1623220 -Node: Group Functions623308 -Node: Walking Arrays631392 -Node: Sample Programs633529 -Node: Running Examples634203 -Node: Clones634931 -Node: Cut Program636155 -Node: Egrep Program646000 -Ref: Egrep Program-Footnote-1653773 -Node: Id Program653883 -Node: Split Program657499 -Ref: Split Program-Footnote-1661018 -Node: Tee Program661146 -Node: Uniq Program663949 -Node: Wc Program671378 -Ref: Wc Program-Footnote-1675644 -Ref: Wc Program-Footnote-2675844 -Node: Miscellaneous Programs675936 -Node: Dupword Program677124 -Node: Alarm Program679155 -Node: Translate Program683908 -Ref: Translate Program-Footnote-1688295 -Ref: Translate Program-Footnote-2688543 -Node: Labels Program688677 -Ref: Labels Program-Footnote-1692048 -Node: Word Sorting692132 -Node: History Sorting696016 -Node: Extract Program697855 -Ref: Extract Program-Footnote-1705358 -Node: Simple Sed705486 -Node: Igawk Program708548 -Ref: Igawk Program-Footnote-1723705 -Ref: Igawk Program-Footnote-2723906 -Node: Anagram Program724044 -Node: Signature Program727112 -Node: Advanced Features728212 -Node: Nondecimal Data730098 -Node: Array Sorting731681 -Node: Controlling Array Traversal732378 -Node: Array Sorting Functions740662 -Ref: Array Sorting Functions-Footnote-1744531 -Node: Two-way I/O744725 -Ref: Two-way I/O-Footnote-1750157 -Node: TCP/IP Networking750227 -Node: Profiling753071 -Node: Internationalization760568 -Node: I18N and L10N761993 -Node: Explaining gettext762679 -Ref: Explaining gettext-Footnote-1767747 -Ref: Explaining gettext-Footnote-2767931 -Node: Programmer i18n768096 -Node: Translator i18n772298 -Node: String Extraction773091 -Ref: String Extraction-Footnote-1774052 -Node: Printf Ordering774138 -Ref: Printf Ordering-Footnote-1776922 -Node: I18N Portability776986 -Ref: I18N Portability-Footnote-1779435 -Node: I18N Example779498 -Ref: I18N Example-Footnote-1782136 -Node: Gawk I18N782208 -Node: Debugger782829 -Node: Debugging783800 -Node: Debugging Concepts784233 -Node: Debugging Terms786089 -Node: Awk Debugging788686 -Node: Sample Debugging Session789578 -Node: Debugger Invocation790098 -Node: Finding The Bug791430 -Node: List of Debugger Commands797918 -Node: Breakpoint Control799252 -Node: Debugger Execution Control802916 -Node: Viewing And Changing Data806276 -Node: Execution Stack809632 -Node: Debugger Info811099 -Node: Miscellaneous Debugger Commands815081 -Node: Readline Support820257 -Node: Limitations821088 -Node: Arbitrary Precision Arithmetic823340 -Ref: Arbitrary Precision Arithmetic-Footnote-1824989 -Node: General Arithmetic825137 -Node: Floating Point Issues826857 -Node: String Conversion Precision827738 -Ref: String Conversion Precision-Footnote-1829443 -Node: Unexpected Results829552 -Node: POSIX Floating Point Problems831705 -Ref: POSIX Floating Point Problems-Footnote-1835530 -Node: Integer Programming835568 -Node: Floating-point Programming837307 -Ref: Floating-point Programming-Footnote-1843638 -Ref: Floating-point Programming-Footnote-2843908 -Node: Floating-point Representation844172 -Node: Floating-point Context845337 -Ref: table-ieee-formats846176 -Node: Rounding Mode847560 -Ref: table-rounding-modes848039 -Ref: Rounding Mode-Footnote-1851054 -Node: Gawk and MPFR851233 -Node: Arbitrary Precision Floats852488 -Ref: Arbitrary Precision Floats-Footnote-1854931 -Node: Setting Precision855247 -Ref: table-predefined-precision-strings855933 -Node: Setting Rounding Mode858078 -Ref: table-gawk-rounding-modes858482 -Node: Floating-point Constants859669 -Node: Changing Precision861098 -Ref: Changing Precision-Footnote-1862495 -Node: Exact Arithmetic862669 -Node: Arbitrary Precision Integers865807 -Ref: Arbitrary Precision Integers-Footnote-1868825 -Node: Dynamic Extensions868972 -Node: Extension Intro870430 -Node: Plugin License871695 -Node: Extension Mechanism Outline872380 -Ref: load-extension872797 -Ref: load-new-function874275 -Ref: call-new-function875270 -Node: Extension API Description877285 -Node: Extension API Functions Introduction878498 -Node: General Data Types883364 -Ref: General Data Types-Footnote-1888969 -Node: Requesting Values889268 -Ref: table-value-types-returned889999 -Node: Constructor Functions890953 -Node: Registration Functions893973 -Node: Extension Functions894658 -Node: Exit Callback Functions896883 -Node: Extension Version String898132 -Node: Input Parsers898782 -Node: Output Wrappers908539 -Node: Two-way processors913049 -Node: Printing Messages915257 -Ref: Printing Messages-Footnote-1916334 -Node: Updating `ERRNO'916486 -Node: Accessing Parameters917225 -Node: Symbol Table Access918455 -Node: Symbol table by name918967 -Node: Symbol table by cookie920714 -Ref: Symbol table by cookie-Footnote-1924844 -Node: Cached values924907 -Ref: Cached values-Footnote-1928356 -Node: Array Manipulation928447 -Ref: Array Manipulation-Footnote-1929545 -Node: Array Data Types929584 -Ref: Array Data Types-Footnote-1932287 -Node: Array Functions932379 -Node: Flattening Arrays936145 -Node: Creating Arrays942997 -Node: Extension API Variables947722 -Node: Extension Versioning948358 -Node: Extension API Informational Variables950259 -Node: Extension API Boilerplate951345 -Node: Finding Extensions955149 -Node: Extension Example955709 -Node: Internal File Description956439 -Node: Internal File Ops960530 -Ref: Internal File Ops-Footnote-1972038 -Node: Using Internal File Ops972178 -Ref: Using Internal File Ops-Footnote-1974531 -Node: Extension Samples974797 -Node: Extension Sample File Functions976321 -Node: Extension Sample Fnmatch984806 -Node: Extension Sample Fork986532 -Node: Extension Sample Inplace987750 -Node: Extension Sample Ord989528 -Node: Extension Sample Readdir990364 -Node: Extension Sample Revout991896 -Node: Extension Sample Rev2way992489 -Node: Extension Sample Read write array993179 -Node: Extension Sample Readfile995062 -Node: Extension Sample API Tests995880 -Node: Extension Sample Time996405 -Node: gawkextlib997769 -Node: Language History1000550 -Node: V7/SVR3.11002143 -Node: SVR41004463 -Node: POSIX1005905 -Node: BTL1007291 -Node: POSIX/GNU1008025 -Node: Feature History1013624 -Node: Common Extensions1026588 -Node: Ranges and Locales1027900 -Ref: Ranges and Locales-Footnote-11032518 -Ref: Ranges and Locales-Footnote-21032545 -Ref: Ranges and Locales-Footnote-31032805 -Node: Contributors1033026 -Node: Installation1038101 -Node: Gawk Distribution1038995 -Node: Getting1039479 -Node: Extracting1040305 -Node: Distribution contents1041997 -Node: Unix Installation1047702 -Node: Quick Installation1048319 -Node: Additional Configuration Options1050763 -Node: Configuration Philosophy1052499 -Node: Non-Unix Installation1054853 -Node: PC Installation1055311 -Node: PC Binary Installation1056610 -Node: PC Compiling1058458 -Node: PC Testing1061402 -Node: PC Using1062578 -Node: Cygwin1066763 -Node: MSYS1067763 -Node: VMS Installation1068277 -Node: VMS Compilation1069041 -Ref: VMS Compilation-Footnote-11070656 -Node: VMS Dynamic Extensions1070714 -Node: VMS Installation Details1072087 -Node: VMS Running1074334 -Node: VMS GNV1077168 -Node: VMS Old Gawk1077891 -Node: Bugs1078361 -Node: Other Versions1082279 -Node: Notes1088363 -Node: Compatibility Mode1089163 -Node: Additions1089946 -Node: Accessing The Source1090873 -Node: Adding Code1092313 -Node: New Ports1098358 -Node: Derived Files1102493 -Ref: Derived Files-Footnote-11107814 -Ref: Derived Files-Footnote-21107848 -Ref: Derived Files-Footnote-31108448 -Node: Future Extensions1108546 -Node: Implementation Limitations1109129 -Node: Extension Design1110381 -Node: Old Extension Problems1111535 -Ref: Old Extension Problems-Footnote-11113043 -Node: Extension New Mechanism Goals1113100 -Ref: Extension New Mechanism Goals-Footnote-11116465 -Node: Extension Other Design Decisions1116651 -Node: Extension Future Growth1118757 -Node: Old Extension Mechanism1119593 -Node: Basic Concepts1121333 -Node: Basic High Level1122014 -Ref: figure-general-flow1122285 -Ref: figure-process-flow1122884 -Ref: Basic High Level-Footnote-11126113 -Node: Basic Data Typing1126298 -Node: Glossary1129653 -Node: Copying1155115 -Node: GNU Free Documentation License1192672 -Node: Index1217809 +Ref: Auto-set-Footnote-1427544 +Ref: Auto-set-Footnote-2427749 +Node: ARGC and ARGV427805 +Node: Arrays431656 +Node: Array Basics433161 +Node: Array Intro433987 +Node: Reference to Elements438304 +Node: Assigning Elements440574 +Node: Array Example441065 +Node: Scanning an Array442797 +Node: Controlling Scanning445111 +Ref: Controlling Scanning-Footnote-1450198 +Node: Delete450514 +Ref: Delete-Footnote-1453279 +Node: Numeric Array Subscripts453336 +Node: Uninitialized Subscripts455519 +Node: Multidimensional457146 +Node: Multiscanning460239 +Node: Arrays of Arrays461828 +Node: Functions466468 +Node: Built-in467287 +Node: Calling Built-in468365 +Node: Numeric Functions470353 +Ref: Numeric Functions-Footnote-1474185 +Ref: Numeric Functions-Footnote-2474542 +Ref: Numeric Functions-Footnote-3474590 +Node: String Functions474859 +Ref: String Functions-Footnote-1497779 +Ref: String Functions-Footnote-2497908 +Ref: String Functions-Footnote-3498156 +Node: Gory Details498243 +Ref: table-sub-escapes499922 +Ref: table-sub-posix-92501276 +Ref: table-sub-proposed502627 +Ref: table-posix-sub503981 +Ref: table-gensub-escapes505526 +Ref: Gory Details-Footnote-1506702 +Ref: Gory Details-Footnote-2506753 +Node: I/O Functions506904 +Ref: I/O Functions-Footnote-1513889 +Node: Time Functions514036 +Ref: Time Functions-Footnote-1524969 +Ref: Time Functions-Footnote-2525037 +Ref: Time Functions-Footnote-3525195 +Ref: Time Functions-Footnote-4525306 +Ref: Time Functions-Footnote-5525418 +Ref: Time Functions-Footnote-6525645 +Node: Bitwise Functions525911 +Ref: table-bitwise-ops526473 +Ref: Bitwise Functions-Footnote-1530694 +Node: Type Functions530878 +Node: I18N Functions532029 +Node: User-defined533656 +Node: Definition Syntax534460 +Ref: Definition Syntax-Footnote-1539370 +Node: Function Example539439 +Node: Function Caveats542033 +Node: Calling A Function542454 +Node: Variable Scope543569 +Node: Pass By Value/Reference546532 +Node: Return Statement550040 +Node: Dynamic Typing553021 +Node: Indirect Calls553952 +Node: Library Functions563637 +Ref: Library Functions-Footnote-1567150 +Ref: Library Functions-Footnote-2567293 +Node: Library Names567464 +Ref: Library Names-Footnote-1570935 +Ref: Library Names-Footnote-2571155 +Node: General Functions571241 +Node: Strtonum Function572269 +Node: Assert Function575199 +Node: Round Function578525 +Node: Cliff Random Function580068 +Node: Ordinal Functions581084 +Ref: Ordinal Functions-Footnote-1584154 +Ref: Ordinal Functions-Footnote-2584406 +Node: Join Function584615 +Ref: Join Function-Footnote-1586386 +Node: Getlocaltime Function586586 +Node: Readfile Function590327 +Node: Data File Management592166 +Node: Filetrans Function592798 +Node: Rewind Function596867 +Node: File Checking598254 +Node: Empty Files599348 +Node: Ignoring Assigns601578 +Node: Getopt Function603131 +Ref: Getopt Function-Footnote-1614434 +Node: Passwd Functions614637 +Ref: Passwd Functions-Footnote-1623612 +Node: Group Functions623700 +Node: Walking Arrays631784 +Node: Sample Programs633921 +Node: Running Examples634595 +Node: Clones635323 +Node: Cut Program636547 +Node: Egrep Program646392 +Ref: Egrep Program-Footnote-1654165 +Node: Id Program654275 +Node: Split Program657891 +Ref: Split Program-Footnote-1661410 +Node: Tee Program661538 +Node: Uniq Program664341 +Node: Wc Program671770 +Ref: Wc Program-Footnote-1676036 +Ref: Wc Program-Footnote-2676236 +Node: Miscellaneous Programs676328 +Node: Dupword Program677516 +Node: Alarm Program679547 +Node: Translate Program684300 +Ref: Translate Program-Footnote-1688687 +Ref: Translate Program-Footnote-2688935 +Node: Labels Program689069 +Ref: Labels Program-Footnote-1692440 +Node: Word Sorting692524 +Node: History Sorting696408 +Node: Extract Program698247 +Ref: Extract Program-Footnote-1705750 +Node: Simple Sed705878 +Node: Igawk Program708940 +Ref: Igawk Program-Footnote-1724097 +Ref: Igawk Program-Footnote-2724298 +Node: Anagram Program724436 +Node: Signature Program727504 +Node: Advanced Features728604 +Node: Nondecimal Data730490 +Node: Array Sorting732073 +Node: Controlling Array Traversal732770 +Node: Array Sorting Functions741054 +Ref: Array Sorting Functions-Footnote-1744923 +Node: Two-way I/O745117 +Ref: Two-way I/O-Footnote-1750549 +Node: TCP/IP Networking750619 +Node: Profiling753463 +Node: Internationalization760960 +Node: I18N and L10N762385 +Node: Explaining gettext763071 +Ref: Explaining gettext-Footnote-1768139 +Ref: Explaining gettext-Footnote-2768323 +Node: Programmer i18n768488 +Node: Translator i18n772690 +Node: String Extraction773483 +Ref: String Extraction-Footnote-1774444 +Node: Printf Ordering774530 +Ref: Printf Ordering-Footnote-1777314 +Node: I18N Portability777378 +Ref: I18N Portability-Footnote-1779827 +Node: I18N Example779890 +Ref: I18N Example-Footnote-1782528 +Node: Gawk I18N782600 +Node: Debugger783221 +Node: Debugging784192 +Node: Debugging Concepts784625 +Node: Debugging Terms786481 +Node: Awk Debugging789078 +Node: Sample Debugging Session789970 +Node: Debugger Invocation790490 +Node: Finding The Bug791822 +Node: List of Debugger Commands798310 +Node: Breakpoint Control799644 +Node: Debugger Execution Control803308 +Node: Viewing And Changing Data806668 +Node: Execution Stack810024 +Node: Debugger Info811491 +Node: Miscellaneous Debugger Commands815473 +Node: Readline Support820649 +Node: Limitations821480 +Node: Arbitrary Precision Arithmetic823732 +Ref: Arbitrary Precision Arithmetic-Footnote-1825381 +Node: General Arithmetic825529 +Node: Floating Point Issues827249 +Node: String Conversion Precision828130 +Ref: String Conversion Precision-Footnote-1829835 +Node: Unexpected Results829944 +Node: POSIX Floating Point Problems832097 +Ref: POSIX Floating Point Problems-Footnote-1835922 +Node: Integer Programming835960 +Node: Floating-point Programming837699 +Ref: Floating-point Programming-Footnote-1844030 +Ref: Floating-point Programming-Footnote-2844300 +Node: Floating-point Representation844564 +Node: Floating-point Context845729 +Ref: table-ieee-formats846568 +Node: Rounding Mode847952 +Ref: table-rounding-modes848431 +Ref: Rounding Mode-Footnote-1851446 +Node: Gawk and MPFR851625 +Node: Arbitrary Precision Floats852880 +Ref: Arbitrary Precision Floats-Footnote-1855323 +Node: Setting Precision855639 +Ref: table-predefined-precision-strings856325 +Node: Setting Rounding Mode858470 +Ref: table-gawk-rounding-modes858874 +Node: Floating-point Constants860061 +Node: Changing Precision861490 +Ref: Changing Precision-Footnote-1862887 +Node: Exact Arithmetic863061 +Node: Arbitrary Precision Integers866199 +Ref: Arbitrary Precision Integers-Footnote-1869217 +Node: Dynamic Extensions869364 +Node: Extension Intro870822 +Node: Plugin License872087 +Node: Extension Mechanism Outline872772 +Ref: load-extension873189 +Ref: load-new-function874667 +Ref: call-new-function875662 +Node: Extension API Description877677 +Node: Extension API Functions Introduction878890 +Node: General Data Types883756 +Ref: General Data Types-Footnote-1889361 +Node: Requesting Values889660 +Ref: table-value-types-returned890391 +Node: Constructor Functions891345 +Node: Registration Functions894365 +Node: Extension Functions895050 +Node: Exit Callback Functions897275 +Node: Extension Version String898524 +Node: Input Parsers899174 +Node: Output Wrappers908931 +Node: Two-way processors913441 +Node: Printing Messages915649 +Ref: Printing Messages-Footnote-1916726 +Node: Updating `ERRNO'916878 +Node: Accessing Parameters917617 +Node: Symbol Table Access918847 +Node: Symbol table by name919359 +Node: Symbol table by cookie921106 +Ref: Symbol table by cookie-Footnote-1925236 +Node: Cached values925299 +Ref: Cached values-Footnote-1928748 +Node: Array Manipulation928839 +Ref: Array Manipulation-Footnote-1929937 +Node: Array Data Types929976 +Ref: Array Data Types-Footnote-1932679 +Node: Array Functions932771 +Node: Flattening Arrays936537 +Node: Creating Arrays943389 +Node: Extension API Variables948114 +Node: Extension Versioning948750 +Node: Extension API Informational Variables950651 +Node: Extension API Boilerplate951737 +Node: Finding Extensions955541 +Node: Extension Example956101 +Node: Internal File Description956831 +Node: Internal File Ops960922 +Ref: Internal File Ops-Footnote-1972430 +Node: Using Internal File Ops972570 +Ref: Using Internal File Ops-Footnote-1974923 +Node: Extension Samples975189 +Node: Extension Sample File Functions976713 +Node: Extension Sample Fnmatch985198 +Node: Extension Sample Fork986924 +Node: Extension Sample Inplace988142 +Node: Extension Sample Ord989920 +Node: Extension Sample Readdir990756 +Node: Extension Sample Revout992288 +Node: Extension Sample Rev2way992881 +Node: Extension Sample Read write array993571 +Node: Extension Sample Readfile995454 +Node: Extension Sample API Tests996272 +Node: Extension Sample Time996797 +Node: gawkextlib998161 +Node: Language History1000942 +Node: V7/SVR3.11002535 +Node: SVR41004855 +Node: POSIX1006297 +Node: BTL1007683 +Node: POSIX/GNU1008417 +Node: Feature History1014016 +Node: Common Extensions1026980 +Node: Ranges and Locales1028292 +Ref: Ranges and Locales-Footnote-11032910 +Ref: Ranges and Locales-Footnote-21032937 +Ref: Ranges and Locales-Footnote-31033197 +Node: Contributors1033418 +Node: Installation1038493 +Node: Gawk Distribution1039387 +Node: Getting1039871 +Node: Extracting1040697 +Node: Distribution contents1042389 +Node: Unix Installation1048094 +Node: Quick Installation1048711 +Node: Additional Configuration Options1051155 +Node: Configuration Philosophy1052891 +Node: Non-Unix Installation1055245 +Node: PC Installation1055703 +Node: PC Binary Installation1057002 +Node: PC Compiling1058850 +Node: PC Testing1061794 +Node: PC Using1062970 +Node: Cygwin1067155 +Node: MSYS1068155 +Node: VMS Installation1068669 +Node: VMS Compilation1069433 +Ref: VMS Compilation-Footnote-11071048 +Node: VMS Dynamic Extensions1071106 +Node: VMS Installation Details1072479 +Node: VMS Running1074726 +Node: VMS GNV1077560 +Node: VMS Old Gawk1078283 +Node: Bugs1078753 +Node: Other Versions1082671 +Node: Notes1088755 +Node: Compatibility Mode1089555 +Node: Additions1090338 +Node: Accessing The Source1091265 +Node: Adding Code1092705 +Node: New Ports1098750 +Node: Derived Files1102885 +Ref: Derived Files-Footnote-11108206 +Ref: Derived Files-Footnote-21108240 +Ref: Derived Files-Footnote-31108840 +Node: Future Extensions1108938 +Node: Implementation Limitations1109521 +Node: Extension Design1110773 +Node: Old Extension Problems1111927 +Ref: Old Extension Problems-Footnote-11113435 +Node: Extension New Mechanism Goals1113492 +Ref: Extension New Mechanism Goals-Footnote-11116857 +Node: Extension Other Design Decisions1117043 +Node: Extension Future Growth1119149 +Node: Old Extension Mechanism1119985 +Node: Basic Concepts1121725 +Node: Basic High Level1122406 +Ref: figure-general-flow1122677 +Ref: figure-process-flow1123276 +Ref: Basic High Level-Footnote-11126505 +Node: Basic Data Typing1126690 +Node: Glossary1130045 +Node: Copying1155507 +Node: GNU Free Documentation License1193064 +Node: Index1218201 End Tag Table diff --git a/doc/gawk.texi b/doc/gawk.texi index 6c3e4c3a..e9ded29c 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -13696,10 +13696,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 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 @@ -35900,9 +35908,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: @@ -35927,7 +35936,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 f8c73cca..d0136cc2 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -13081,10 +13081,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 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 @@ -35049,9 +35057,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: @@ -35076,7 +35085,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 |