diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-05-30 10:55:42 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-05-30 10:55:42 +0300 |
commit | 0eb07623dd13a31feb1ada1b3046e05349db00d9 (patch) | |
tree | 5e996fc1de120dbe0e3a83e5ae60ef97a8c918c3 /doc/gawktexi.in | |
parent | 5fc8c257478f9c503a905c27163b038843bc591c (diff) | |
parent | 1963e23d0a9b13974f2e5a77fdea03d50dc9c654 (diff) | |
download | egawk-0eb07623dd13a31feb1ada1b3046e05349db00d9.tar.gz egawk-0eb07623dd13a31feb1ada1b3046e05349db00d9.tar.bz2 egawk-0eb07623dd13a31feb1ada1b3046e05349db00d9.zip |
Merge branch 'master' into feature/api-mpfr
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r-- | doc/gawktexi.in | 44 |
1 files changed, 25 insertions, 19 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in index 402caede..ad4b3a8a 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -4892,25 +4892,6 @@ function names added by @command{gawk} after the code was written. Standard @command{awk} built-in functions, such as @code{sin()} or @code{substr()} are @emph{not} shadowed in this way. -The @code{PROCINFO["argv"]} array contains all of the command-line arguments -(after glob expansion and redirection processing on platforms where that must -be done manually by the program) with subscripts ranging from 0 through -@code{argc} @minus{} 1. For example, @code{PROCINFO["argv"][0]} will contain -the name by which @command{gawk} was invoked. Here is an example of how this -feature may be used: - -@example -gawk ' -BEGIN @{ - for (i = 0; i < length(PROCINFO["argv"]); i++) - print i, PROCINFO["argv"][i] -@}' -@end example - -Please note that this differs from the standard @code{ARGV} array which does -not include command-line arguments that have already been processed by -@command{gawk} (@pxref{ARGC and ARGV}). - @end ignore @node Invoking Summary @@ -14803,6 +14784,27 @@ The following elements (listed alphabetically) are guaranteed to be available: @table @code +@item PROCINFO["argv"] +@cindex command line arguments, @code{PROCINFO["argv"} +The @code{PROCINFO["argv"]} array contains all of the command-line arguments +(after glob expansion and redirection processing on platforms where that must +be done manually by the program) with subscripts ranging from 0 through +@code{argc} @minus{} 1. For example, @code{PROCINFO["argv"][0]} will contain +the name by which @command{gawk} was invoked. Here is an example of how this +feature may be used: + +@example +gawk ' +BEGIN @{ + for (i = 0; i < length(PROCINFO["argv"]); i++) + print i, PROCINFO["argv"][i] +@}' +@end example + +Please note that this differs from the standard @code{ARGV} array which does +not include command-line arguments that have already been processed by +@command{gawk} (@pxref{ARGC and ARGV}). + @cindex effective group ID of @command{gawk} user @item PROCINFO["egid"] The value of the @code{getegid()} system call. @@ -37036,6 +37038,10 @@ environment and that of programs that it runs. @xref{Auto-set}. @item +The @code{PROCINFO["argv"} array. +@xref{Auto-set}. + +@item The @option{--pretty-print} option no longer runs the @command{awk} program too. @xref{Options}. |