From: Stéphane Campinas Date: Tue, 25 Sep 2018 06:29:39 +0000 (-0700) Subject: doc: csplit: clarify handling of regexps with negative offsets X-Git-Tag: v8.31~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7262994810deac63fcb55223e599acc7339a7526;p=thirdparty%2Fcoreutils.git doc: csplit: clarify handling of regexps with negative offsets * doc/coreutils.texi (csplit invocation): Detail the behavior with regexp patterns and negative offsets, which differs from line number patterns, to avoid looping on the input. For example: $ seq 50 | csplit -s - /15/-5 /12/ csplit: ‘/12/’: match not found --- diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 12ddafb884..f147beb78e 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -3410,6 +3410,8 @@ including) the next line of the input file that contains a match for If it is given, the input up to (but not including) the matching line plus or minus @var{offset} is put into the output file, and the line after that begins the next section of input. +Note lines within a negative offset of a regexp pattern +are not matched in subsequent regexp patterns. @item %@var{regexp}%[@var{offset}] Like the previous type, except that it does not create an output