On Sun, 24 Jul 2016 21:04:29 -0400
Wolfgang Corcoran-Mathe <[email protected]> wrote:

Hey Wolfgang,

> Previously, greedy patterns like /.*/ overran the buffer and
> patterns with null matches (e.g. /G*/) never increased the
> offset for rematch().  In both cases, the result was an
> infinite loop.
> 
> Breaking after the first null match follows the behavior of
> GNU ed.  It has the virtue of simplicity.

so, which behaviour should we follow (looking at the discussion that
took place)? I would favor the intuïtive behaviour, but maybe there was
some feedback from the Austin ML.

In general, it's true that for 0-byte-handling, the entire architecture
needs a revamp.

Cheers

Laslo

-- 
Laslo Hunhold <[email protected]>

Reply via email to