diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2019-04-21 14:34:23 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2019-04-21 14:34:23 +0300 |
commit | 3ee06fa46236117ccb00fe4e832e7a7e4694f7f8 (patch) | |
tree | 01f8e7689341ea9e5340e3f86bc6fd3fa79d675a /doc/gawk.texi | |
parent | ae4b75ecd4fd00af1504325857abe6883ab85a28 (diff) | |
download | egawk-3ee06fa46236117ccb00fe4e832e7a7e4694f7f8.tar.gz egawk-3ee06fa46236117ccb00fe4e832e7a7e4694f7f8.tar.bz2 egawk-3ee06fa46236117ccb00fe4e832e7a7e4694f7f8.zip |
Doc fix: POSIX language on RS.
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r-- | doc/gawk.texi | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi index fb0b408e..973e0eb4 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -8289,10 +8289,20 @@ as the result of a special feature. When @code{RS} is set to the empty string @emph{and} @code{FS} is set to a single character, the newline character @emph{always} acts as a field separator. This is in addition to whatever field separations result from -@code{FS}.@footnote{When @code{FS} is the null string (@code{""}) +@code{FS}. + +@quotation NOTE +When @code{FS} is the null string (@code{""}) or a regexp, this special feature of @code{RS} does not apply. It does apply to the default field separator of a single space: -@samp{FS = @w{" "}}.} +@samp{FS = @w{" "}}. + +Note that language in the POSIX specification implies that +this special feature should apply when @code{FS} is a regexp. +However, Unix @command{awk} has never behaved that way, nor has +@command{gawk}. This is essentially a bug in POSIX. +@c Noted as of 4/2019; working to get the standard fixed. +@end NOTE The original motivation for this special exception was probably to provide useful behavior in the default case (i.e., @code{FS} is equal |