aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/ChangeLog1
-rw-r--r--doc/gawk.info12
-rw-r--r--doc/gawk.texi12
-rw-r--r--doc/gawktexi.in12
4 files changed, 19 insertions, 18 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 5d8c4a5e..3840f933 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,6 +1,7 @@
2015-02-08 Arnold D. Robbins <arnold@skeeve.com>
* gawktexi.in: O'Reilly fixes.
+ Make non-fatal i/o use "NONFATAL".
2015-02-06 Arnold D. Robbins <arnold@skeeve.com>
diff --git a/doc/gawk.info b/doc/gawk.info
index d83370e8..118c814a 100644
--- a/doc/gawk.info
+++ b/doc/gawk.info
@@ -7226,10 +7226,10 @@ error message of your choosing before exiting. You can do this in one
of two ways:
* For all output files, by assigning any value to
- `PROCINFO["nonfatal"]'.
+ `PROCINFO["NONFATAL"]'.
* On a per-file basis, by assigning any value to `PROCINFO[FILENAME,
- "nonfatal"]'. Here, FILENAME is the name of the file to which you
+ "NONFATAL"]'. Here, FILENAME is the name of the file to which you
wish output to be nonfatal.
Once you have enabled nonfatal output, you must check `ERRNO' after
@@ -7239,7 +7239,7 @@ attempting the output. For example:
$ gawk '
> BEGIN {
- > PROCINFO["nonfatal"] = 1
+ > PROCINFO["NONFATAL"] = 1
> ERRNO = 0
> print "hi" > "/no/such/file"
> if (ERRNO) {
@@ -7253,9 +7253,9 @@ attempting the output. For example:
program code detect the problem and handle it.
This mechanism works also for standard output and standard error.
-For standard output, you may use `PROCINFO["-", "nonfatal"]' or
-`PROCINFO["/dev/stdout", "nonfatal"]'. For standard error, use
-`PROCINFO["/dev/stderr", "nonfatal"]'.
+For standard output, you may use `PROCINFO["-", "NONFATAL"]' or
+`PROCINFO["/dev/stdout", "NONFATAL"]'. For standard error, use
+`PROCINFO["/dev/stderr", "NONFATAL"]'.

File: gawk.info, Node: Output Summary, Next: Output Exercises, Prev: Nonfatal, Up: Printing
diff --git a/doc/gawk.texi b/doc/gawk.texi
index 81568fe7..1a239124 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -10458,11 +10458,11 @@ You can do this in one of two ways:
@itemize @bullet
@item
-For all output files, by assigning any value to @code{PROCINFO["nonfatal"]}.
+For all output files, by assigning any value to @code{PROCINFO["NONFATAL"]}.
@item
On a per-file basis, by assigning any value to
-@code{PROCINFO[@var{filename}, "nonfatal"]}.
+@code{PROCINFO[@var{filename}, "NONFATAL"]}.
Here, @var{filename} is the name of the file to which
you wish output to be nonfatal.
@end itemize
@@ -10475,7 +10475,7 @@ see if something went wrong. It is also a good idea to initialize
@example
$ @kbd{gawk '}
> @kbd{BEGIN @{}
-> @kbd{ PROCINFO["nonfatal"] = 1}
+> @kbd{ PROCINFO["NONFATAL"] = 1}
> @kbd{ ERRNO = 0}
> @kbd{ print "hi" > "/no/such/file"}
> @kbd{ if (ERRNO) @{}
@@ -10490,9 +10490,9 @@ Here, @command{gawk} did not produce a fatal error; instead
it let the @command{awk} program code detect the problem and handle it.
This mechanism works also for standard output and standard error.
-For standard output, you may use @code{PROCINFO["-", "nonfatal"]}
-or @code{PROCINFO["/dev/stdout", "nonfatal"]}. For standard error, use
-@code{PROCINFO["/dev/stderr", "nonfatal"]}.
+For standard output, you may use @code{PROCINFO["-", "NONFATAL"]}
+or @code{PROCINFO["/dev/stdout", "NONFATAL"]}. For standard error, use
+@code{PROCINFO["/dev/stderr", "NONFATAL"]}.
@node Output Summary
@section Summary
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index e127f428..1e833fe2 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -9954,11 +9954,11 @@ You can do this in one of two ways:
@itemize @bullet
@item
-For all output files, by assigning any value to @code{PROCINFO["nonfatal"]}.
+For all output files, by assigning any value to @code{PROCINFO["NONFATAL"]}.
@item
On a per-file basis, by assigning any value to
-@code{PROCINFO[@var{filename}, "nonfatal"]}.
+@code{PROCINFO[@var{filename}, "NONFATAL"]}.
Here, @var{filename} is the name of the file to which
you wish output to be nonfatal.
@end itemize
@@ -9971,7 +9971,7 @@ see if something went wrong. It is also a good idea to initialize
@example
$ @kbd{gawk '}
> @kbd{BEGIN @{}
-> @kbd{ PROCINFO["nonfatal"] = 1}
+> @kbd{ PROCINFO["NONFATAL"] = 1}
> @kbd{ ERRNO = 0}
> @kbd{ print "hi" > "/no/such/file"}
> @kbd{ if (ERRNO) @{}
@@ -9986,9 +9986,9 @@ Here, @command{gawk} did not produce a fatal error; instead
it let the @command{awk} program code detect the problem and handle it.
This mechanism works also for standard output and standard error.
-For standard output, you may use @code{PROCINFO["-", "nonfatal"]}
-or @code{PROCINFO["/dev/stdout", "nonfatal"]}. For standard error, use
-@code{PROCINFO["/dev/stderr", "nonfatal"]}.
+For standard output, you may use @code{PROCINFO["-", "NONFATAL"]}
+or @code{PROCINFO["/dev/stdout", "NONFATAL"]}. For standard error, use
+@code{PROCINFO["/dev/stderr", "NONFATAL"]}.
@node Output Summary
@section Summary