diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-02-08 20:01:32 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-02-08 20:01:32 +0200 |
commit | 7f9f66525d7d82816eba352efdf58497373a47bf (patch) | |
tree | 114c8f7d46aa478599e7a3a3e00cce4316dfd78b /doc/gawk.texi | |
parent | 0e38201f5879cc91c90876b2b9b219a308e3a2d2 (diff) | |
download | egawk-7f9f66525d7d82816eba352efdf58497373a47bf.tar.gz egawk-7f9f66525d7d82816eba352efdf58497373a47bf.tar.bz2 egawk-7f9f66525d7d82816eba352efdf58497373a47bf.zip |
Use "NONFATAL" for nonfatal I/O.
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r-- | doc/gawk.texi | 12 |
1 files changed, 6 insertions, 6 deletions
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 |