diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-08-19 20:47:49 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-08-19 20:47:49 +0300 |
commit | 7d19cbd54ad60474aded4b9fe587c7f53a14d488 (patch) | |
tree | 51998aad52e56b149b5421db29924a8a8b43cf7d /doc/gawktexi.in | |
parent | f106ce81c596748a0df5b5ccca61e2f989ad9e1d (diff) | |
download | egawk-7d19cbd54ad60474aded4b9fe587c7f53a14d488.tar.gz egawk-7d19cbd54ad60474aded4b9fe587c7f53a14d488.tar.bz2 egawk-7d19cbd54ad60474aded4b9fe587c7f53a14d488.zip |
Changes to ENVIRON reflect into the environment.
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r-- | doc/gawktexi.in | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in index 59ee1a69..1a696f9a 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -13037,10 +13037,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 |