diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2018-11-26 20:46:03 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2018-11-26 20:46:03 +0200 |
commit | 7eac08335f61dc6b0f236f9bf7c3ad434576b70f (patch) | |
tree | 30b234ecd49c6303a07a790f32e70dc5cced9a50 /doc/gawk.1 | |
parent | f33f0191191802f34dc2203d64e6cad40b8d6865 (diff) | |
download | egawk-7eac08335f61dc6b0f236f9bf7c3ad434576b70f.tar.gz egawk-7eac08335f61dc6b0f236f9bf7c3ad434576b70f.tar.bz2 egawk-7eac08335f61dc6b0f236f9bf7c3ad434576b70f.zip |
Doc update on split().
Diffstat (limited to 'doc/gawk.1')
-rw-r--r-- | doc/gawk.1 | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -13,7 +13,7 @@ . if \w'\(rq' .ds rq "\(rq . \} .\} -.TH GAWK 1 "Apr 08 2018" "Free Software Foundation" "Utility Commands" +.TH GAWK 1 "Nov 26 2018" "Free Software Foundation" "Utility Commands" .SH NAME gawk \- pattern scanning and processing language .SH SYNOPSIS @@ -3031,7 +3031,7 @@ is the possibly null separator that appeared after The value of .B seps[0] is the possibly null leading separator. -\&\fRIf +If .I r is omitted, .B FPAT @@ -3071,7 +3071,7 @@ between .BI a[ i ] and .BI a[ i +1]\fR. -\&\fRIf +If .I r is a single space, then leading whitespace in .I s @@ -3084,6 +3084,10 @@ where is the return value of .BI split( s ", " a ", " r ", " seps )\fR. Splitting behaves identically to field splitting, described above. +In particular, if +.I r +is a single-character string, that string acts as the separator, +even if it happens to be a regular expression metacharacter. .TP .BI sprintf( fmt , " expr-list" ) Print |