diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2020-12-07 14:30:47 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2020-12-07 14:30:47 +0200 |
commit | 86df8fd1c504793b43404ce9467cff7b1d1fe2a1 (patch) | |
tree | 94e983746e05228e9d87024c9a61a4fb80432ec0 /doc/gawktexi.in | |
parent | 2d10a67c0edc9170ce20d4cefe6806ef01d8a45f (diff) | |
parent | 8224cc546f7cfb0922fb69f3ad3f91313cf80e37 (diff) | |
download | egawk-86df8fd1c504793b43404ce9467cff7b1d1fe2a1.tar.gz egawk-86df8fd1c504793b43404ce9467cff7b1d1fe2a1.tar.bz2 egawk-86df8fd1c504793b43404ce9467cff7b1d1fe2a1.zip |
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r-- | doc/gawktexi.in | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in index 5a4e7479..eb9e794e 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -6643,22 +6643,6 @@ character in the value of @code{RS} has no special effect: it is treated literally. This is required for backwards compatibility with both Unix @command{awk} and with POSIX. -When using regular characters as the record separator, -there is one unusual case that occurs when @command{gawk} is -being fully POSIX-compliant (@pxref{Options}). -Then, the following (extreme) pipeline prints a surprising @samp{1}: - -@example -$ @kbd{echo | gawk --posix 'BEGIN @{ RS = "a" @} ; @{ print NF @}'} -@print{} 1 -@end example - -There is one field, consisting of a newline. The value of the built-in -variable @code{NF} is the number of fields in the current record. -(In the normal case, @command{gawk} treats the newline as whitespace, -printing @samp{0} as the result. Most other versions of @command{awk} -also act this way.) - @cindex dark corner @subentry input files Reaching the end of an input file terminates the current input record, even if the last character in the file is not the character in @code{RS}. |