]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: csplit: clarify handling of regexps with negative offsets
authorStéphane Campinas <stephane.campinas@gmail.com>
Tue, 25 Sep 2018 06:29:39 +0000 (23:29 -0700)
committerPádraig Brady <P@draigBrady.com>
Tue, 25 Sep 2018 06:48:56 +0000 (23:48 -0700)
* 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

doc/coreutils.texi

index 12ddafb8847b4374428e52b4c07532372707fb35..f147beb78e320b176a375cd93cdb767ce99ef0aa 100644 (file)
@@ -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