Public bug reported: agrep sometimes finds a line under exact matching, but not under inexact matching. I couldn't come up with a small test case, but http://web.mit.edu/ecprice/Public/broken-agrep-example.gz has a 1.3 million line test case:
$ wget http://web.mit.edu/ecprice/Public/broken-agrep-example.gz -O - | zcat > case [...] $ agrep ^waterfal$ case #correct waterfal $ agrep -S1 ^waterfal$ case #should be identical to previous, but isn't $ agrep -1 ^waterfal$ case #incorrect in last line waterfall waterval aterfal $ agrep ^aterfal$ case #as you can see here. $ I'm also a bit confused by the relation between the version in Ubuntu and the version (3.41) at http://www.tgries.de/agrep/ . The ubuntu version number is 4.17, but agrep -V claims to be version 3.0. It seems like version 3.41 had a substantial amount of development in 96-97. It also doesn't have this bug. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: agrep 4.17-7 ProcVersionSignature: Ubuntu 3.0.0-14.23-generic 3.0.9 Uname: Linux 3.0.0-14-generic x86_64 NonfreeKernelModules: openafs ApportVersion: 1.23-0ubuntu4 Architecture: amd64 Date: Mon Jan 9 18:47:11 2012 InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110413) ProcEnviron: LC_COLLATE=C PATH=(custom, user) LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: agrep UpgradeStatus: Upgraded to oneiric on 2011-10-14 (87 days ago) ** Affects: agrep (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug oneiric -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/914037 Title: agrep gives incorrect output in some approximate searches To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/agrep/+bug/914037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs