|
From: Doug R. <df...@nl...> - 2004-01-05 11:38:15
|
On Mon, 2004-01-05 at 10:33, Jeremy Fitzhardinge wrote: > On Mon, 2004-01-05 at 02:15, Doug Rabson wrote: > > On Mon, 2004-01-05 at 01:02, Jeremy Fitzhardinge wrote: > > > CVS commit by fitzhardinge: > > > > > > Debork regtests > > > > The '\1' reference will not work on FreeBSD. To quote the manpage: > > > > Back references are a dreadful botch, posing major problems for > > efficient implementations. They are also somewhat vaguely > > defined (does `a\(\(b\)*\2\)*d' match `abbbd'?). Avoid using > > them. > > Yep, and -E doesn't work with gnu sed - we need to fix it properly > somehow, but in the meantime we should not break the current tests. > Perhaps we should use perl, since it will be consistent across > platforms? I think the key problem was the use of '\1' but I didn't realise that until I started messing around with -E (which selects an alternative regexp expression syntax). It should be possible to come up with something that works on both versions of sed. |