aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawktexi.in
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-05-16 23:10:29 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-05-16 23:10:29 +0300
commit1966bd9cd849c3d83dbb0fcb547684b17c2cd61e (patch)
tree817aa91f2e0720e810f20d0abc30895f1fe62bd1 /doc/gawktexi.in
parentc5bc34ad1537ceaba4962d1639f61ca4b4d50e94 (diff)
parentb6963495dffd0bc11e2007b9854ad34d14b0b29c (diff)
downloadegawk-1966bd9cd849c3d83dbb0fcb547684b17c2cd61e.tar.gz
egawk-1966bd9cd849c3d83dbb0fcb547684b17c2cd61e.tar.bz2
egawk-1966bd9cd849c3d83dbb0fcb547684b17c2cd61e.zip
Merge branch 'master' into feature/regex-type
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r--doc/gawktexi.in25
1 files changed, 23 insertions, 2 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index e75fd214..a8af903e 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -4819,6 +4819,25 @@ 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
+awk '
+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
@@ -13934,8 +13953,8 @@ The current version of BWK @command{awk} and @command{mawk}
also support @code{nextfile}. However, they don't allow the
@code{nextfile} statement inside function bodies (@pxref{User-defined}).
@command{gawk} does; a @code{nextfile} inside a function body reads the
-next record and starts processing it with the first rule in the program,
-just as any other @code{nextfile} statement.
+first record from the next file and starts processing it with the first
+rule in the program, just as any other @code{nextfile} statement.
@node Exit Statement
@subsection The @code{exit} Statement
@@ -37837,6 +37856,8 @@ the bug reporting address is preferred because the
email list is archived at the GNU Project.
@emph{All email must be in English. This is the only language
understood in common by all the maintainers.}
+In addition, please be sure to send all mail in @emph{plain text},
+not (or not exclusively) in HTML.
@cindex @code{comp.lang.awk} newsgroup
@quotation CAUTION