Re: Fix off by 1 in sed

2016-10-11 Thread Otto Moerbeek
On Mon, Oct 10, 2016 at 09:53:55PM +0200, Martijn van Duren wrote: > Hello tech@, > > As reported and fixed by pfg@freebsd. > Fixes the following case: > % echo z | gsed -n -e 's/^a*/b/2p' > # empty -- correct > % echo z | sed -n -e 's/^a*/b/2p' > z # incorrect > > Fix in FreeBSD r302973 > >

Fix off by 1 in sed

2016-10-11 Thread Martijn van Duren
Hello tech@, As reported and fixed by pfg@freebsd. Fixes the following case: % echo z | gsed -n -e 's/^a*/b/2p' # empty -- correct % echo z | sed -n -e 's/^a*/b/2p' z # incorrect Fix in FreeBSD r302973 OK? martijn@ Index: process.c