aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawktexi.in
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-11-26 20:53:35 +0200
committerArnold D. Robbins <arnold@skeeve.com>2018-11-26 20:53:35 +0200
commit6e786c0622d9afd845ff56ac83c6bc9726dbe230 (patch)
tree4c4894d35e2da7671750de7cac845471f1fa4728 /doc/gawktexi.in
parent868a694807f0b0a617a47648910a7004b2b9ff97 (diff)
parent7eac08335f61dc6b0f236f9bf7c3ad434576b70f (diff)
downloadegawk-6e786c0622d9afd845ff56ac83c6bc9726dbe230.tar.gz
egawk-6e786c0622d9afd845ff56ac83c6bc9726dbe230.tar.bz2
egawk-6e786c0622d9afd845ff56ac83c6bc9726dbe230.zip
Merge branch 'gawk-4.2-stable'
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r--doc/gawktexi.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index 894fd559..2fffdc73 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -7704,7 +7704,6 @@ FPAT = "([^,]*)|(\"[^\"]+\")"
Finally, the @code{patsplit()} function makes the same functionality
available for splitting regular strings (@pxref{String Functions}).
-
@node Testing field creation
@section Checking How @command{gawk} Is Splitting Records
@@ -17703,8 +17702,8 @@ whitespace goes into @code{@var{seps}[@var{n}]}, where @var{n} is the
return value of
@code{split()} (i.e., the number of elements in @var{array}).
-The @code{split()} function splits strings into pieces in a
-manner similar to the way input lines are split into fields. For example:
+The @code{split()} function splits strings into pieces in the same way
+that input lines are split into fields. For example:
@example
split("cul-de-sac", a, "-", seps)
@@ -17740,6 +17739,8 @@ are separated by runs of whitespace.
Also, as with input field splitting, if @var{fieldsep} is the null string, each
individual character in the string is split into its own array element.
@value{COMMONEXT}
+Additionally, if @var{fieldsep} is a single-character string, that string acts
+as the separator, even if its value is a regular expression metacharacter.
Note, however, that @code{RS} has no effect on the way @code{split()}
works. Even though @samp{RS = ""} causes the newline character to also be an input