[TRE-general] $ doesn't match end-of-line

Ville Laurikari ville at laurikari.net
Fri May 19 21:59:28 EEST 2006


On Fri, May 12, 2006 at 02:47:44AM -0400, William J Poser wrote:
> Sebastian Nagel wrote:
> 	[volga:~] echo -e "asdf" | agrep '^asdf$'
> 	[volga:~] echo -e "asdf" | agrep '^asdf\n$'
> 	asdf
> I ran into the same thing.  It seems that agrep includes the record
> delimiter in the record.
[clip]
> This is non-standard (in the sense of different from other greps)
> but could be useful.  I would change the default but perhaps keep
> this as an option.

Oops, this is definitely a bug, not intentional.  I don't know where
this behavior would be useful.  Keeping it as an option makes agrep
just that much more complex, so I'd be inclined to follow the "you
ain't gonna need it" principle.

I already have a fix for this for 0.7.4.  I also added a bunch of
regression tests for agrep, which obviously are needed...

--
http://www.iki.fi/vl/


More information about the TRE-general mailing list