GNU bug report logs - #31979
csplit: a regexp pattern does not consider the negative offset of a previous regexp pattern

Previous Next

Package: coreutils;

Reported by: Stéphane Campinas <stephane.campinas <at> gmail.com>

Date: Tue, 26 Jun 2018 15:12:02 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 31979 <at> debbugs.gnu.org (full text, mbox):

From: Stéphane Campinas <stephane.campinas <at> gmail.com>
To: 31979 <at> debbugs.gnu.org
Subject: csplit: a regexp pattern does not consider the negative offset of a
Date: Mon, 24 Sep 2018 14:40:45 +0200
[Message part 1 (text/plain, inline)]
Hi,

After attempting to port csplit, I think I understand why it is like
that: it is to stop the iteration in case a pattern should be executed
several times. Therefore, maybe an easy fix is to alter the
documentation to indicate that lines within a negative offset are not
matched in subsequent patterns, with the exception of the line-based
pattern.

Cheers,

-- 
Stephane Campinas
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 6 years and 236 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.