aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawk.texi
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-12-05 13:40:14 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-12-05 13:40:14 +0200
commitbf97a0c486d96e13c57e2f716dfacfa07c6394f5 (patch)
treeaab11dba320a0971ca88d1cdc15cadd3441b838b /doc/gawk.texi
parentd07f0f9df7ea216ca579eed7a9b46d3e168619de (diff)
parent3ceedbd1f9a0a1444d13aa64cd85db28cb17d219 (diff)
downloadegawk-bf97a0c486d96e13c57e2f716dfacfa07c6394f5.tar.gz
egawk-bf97a0c486d96e13c57e2f716dfacfa07c6394f5.tar.bz2
egawk-bf97a0c486d96e13c57e2f716dfacfa07c6394f5.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r--doc/gawk.texi41
1 files changed, 25 insertions, 16 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi
index 7c9beae6..1345d352 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -2234,7 +2234,7 @@ the fourth edition and for his support during the work.
Thanks to Jasmine Kwityn for her copy-editing work.
@end ifset
-Thanks to Michael Brennan for the Foreword.
+Thanks to Michael Brennan for the Forewords.
@cindex Duman, Patrice
@cindex Berry, Karl
@@ -3933,7 +3933,13 @@ Command-line variable assignments of the form
This option is particularly necessary for World Wide Web CGI applications
that pass arguments through the URL; using this option prevents a malicious
(or other) user from passing in options, assignments, or @command{awk} source
-code (via @option{-e}) to the CGI application. This option should be used
+code (via @option{-e}) to the CGI application.@footnote{For more detail,
+please see Section 4.4 of @uref{http://www.ietf.org/rfc/rfc3875,
+RFC 3875}. Also see the
+@uref{http://lists.gnu.org/archive/html/bug-gawk/2014-11/msg00022.html,
+explanatory note sent to the @command{gawk} bug
+mailing list}.}
+This option should be used
with @samp{#!} scripts (@pxref{Executable Scripts}), like so:
@example
@@ -7497,7 +7503,7 @@ on an incorrect implementation of @command{awk}, while @command{gawk}
prints the full first line of the file, something like:
@example
-root:nSijPlPhZZwgE:0:0:Root:/:
+root:x:0:0:Root:/:
@end example
@docbook
@@ -7550,7 +7556,7 @@ on an incorrect implementation of @command{awk}, while @command{gawk}
prints the full first line of the file, something like:
@example
-root:nSijPlPhZZwgE:0:0:Root:/:
+root:x:0:0:Root:/:
@end example
@end cartouche
@end ifnotdocbook
@@ -7887,7 +7893,7 @@ will be @code{"FPAT"} if content-based field splitting is being used.
@quotation NOTE
Some programs export CSV data that contains embedded newlines between
the double quotes. @command{gawk} provides no way to deal with this.
-Because no formal specification for CSV data exists, there isn't much
+Even though a formal specification for CSV data exists, there isn't much
more to be done;
the @code{FPAT} mechanism provides an elegant solution for the majority
of cases, and the @command{gawk} developers are satisfied with that.
@@ -8619,7 +8625,7 @@ Using @code{FILENAME} with @code{getline}
is likely to be a source for
confusion. @command{awk} opens a separate input stream from the
current input file. However, by not using a variable, @code{$0}
-and @code{NR} are still updated. If you're doing this, it's
+and @code{NF} are still updated. If you're doing this, it's
probably by accident, and you should reconsider what it is you're
trying to accomplish.
@@ -8762,7 +8768,7 @@ for the input to arrive:
PROCINFO[Service, "READ_TIMEOUT"] = 1000
while ((Service |& getline) > 0) @{
print $0
- PROCINFO[S, "READ_TIMEOUT"] -= 100
+ PROCINFO[Service, "READ_TIMEOUT"] -= 100
@}
@end example
@@ -22566,7 +22572,7 @@ A few lines representative of @command{pwcat}'s output are as follows:
@cindex Robbins, Miriam
@example
$ @kbd{pwcat}
-@print{} root:3Ov02d5VaUPB6:0:1:Operator:/:/bin/sh
+@print{} root:x:0:1:Operator:/:/bin/sh
@print{} nobody:*:65534:65534::/:
@print{} daemon:*:1:1::/:
@print{} sys:*:2:2::/:/bin/csh
@@ -35279,7 +35285,7 @@ project provides a number of @command{gawk} extensions, including one for
processing XML files. This is the evolution of the original @command{xgawk}
(XML @command{gawk}) project.
-As of this writing, there are five extensions:
+As of this writing, there are six extensions:
@itemize @value{BULLET}
@item
@@ -35297,6 +35303,9 @@ MPFR library extension
native MPFR support does not)
@item
+Redis extension
+
+@item
XML parser extension, using the @uref{http://expat.sourceforge.net, Expat}
XML parsing library
@end itemize
@@ -40105,6 +40114,13 @@ pattern matches an input record, @command{awk} executes the
rule's action. Actions are always enclosed in braces.
(@xref{Action Overview}.)
+@cindex Ada programming language
+@cindex programming languages, Ada
+@item Ada
+A programming language originally defined by the U.S.@: Department of
+Defense for embedded programming. It was designed to enforce good
+Software Engineering practices.
+
@cindex Spencer, Henry
@cindex @command{sed} utility
@cindex amazing @command{awk} assembler (@command{aaa})
@@ -40116,13 +40132,6 @@ microcomputers. It is a good example of a program that would have been
better written in another language.
You can get it from @uref{http://awk.info/?awk100/aaa}.
-@cindex Ada programming language
-@cindex programming languages, Ada
-@item Ada
-A programming language originally defined by the U.S.@: Department of
-Defense for embedded programming. It was designed to enforce good
-Software Engineering practices.
-
@cindex amazingly workable formatter (@command{awf})
@cindex @command{awf} (amazingly workable formatter) program
@item Amazingly Workable Formatter (@command{awf})