Paolo Bonzini wrote: > this series is a pretty heavy refactoring of how anchors work in dfa.c. > The main objective is to implement ^, $, \` and \' correctly when grep > -z is in use. In particular, ^ and $ will match a newline character in > the middle of a NULL-delimited sequence. This is backwards-incompatible. ... > dfa: fix corner case with anchors > dfa: introduce contexts for the values in d->success > dfa: change newline/letter to a single context value > dfa: refactor common context computations > dfa: change meaning of a state context > dfa: remove useless check > dfa: make repetitive code *really* repetitive > dfa: remove redundant line constraints > dfa: rename "newline" to "buffer delimiter" > dfa: introduce bufdelim context > dfa: introduce BEGBUF/ENDBUF
Thanks for all that work. Just a heads up that I probably won't be able to do much more grep review work this week, due to other commitments: a coreutils release is imminent and parted needs attention.