From 7eac08335f61dc6b0f236f9bf7c3ad434576b70f Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 26 Nov 2018 20:46:03 +0200 Subject: Doc update on split(). --- doc/gawk.1 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'doc/gawk.1') diff --git a/doc/gawk.1 b/doc/gawk.1 index a2448695..7bcef9d6 100644 --- a/doc/gawk.1 +++ b/doc/gawk.1 @@ -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 -- cgit v1.2.3