grep-2.19 introduced a bug whereby certain regexps can mistakenly match certain input lines. This is a big enough deal that I'm going to release grep-2.20 in the next few days. To prepare for that, here is a pre-release snapshot of the latest. Please give it a workout and let us know how any testing goes.
grep snapshot: http://meyering.net/grep/grep-ss.tar.xz 1.2 MB http://meyering.net/grep/grep-ss.tar.xz.sig http://meyering.net/grep/grep-2.19.12-96bd.tar.xz ============================= NEWS: ** Bug fixes A command like echo aa|grep -E 'a(b$|c$)' would mistakenly report the input as a matched line. [bug introduced in grep-2.19] ** Changes in behavior grep --exclude-dir='FOO/' now excludes the directory FOO. Previously, the trailing slash meant the option was ineffective. ============================= Changes in grep since v2.19: Jim Meyering (4): maint: post-release administrivia gnulib: update, for mbrlen/mbrtowc empty input bug fix maint: revert "grep: port mb_next_wc to RHEL 6.5 x86-64" dfa: fix off-by-one under-allocation from recent change Norihiro Tanaka (5): grep: remove unnecessary argument dfa: do not clear the first state of a transition table dfa: revert "grep: do not count newline before the start of buffer" dfa: simplify building initial state dfa: fix bug with regex containing multiple begin/end-line constraints Paul Eggert (2): dist: don't distribute lib/colorize.c grep: --exclude-dir=FOO/ now ignores the trailing slash behoffski (1): maint: uncapitalize first letter of two dfaerror message strings ============================= Changes in gnulib since v2.19: * gnulib c2e80b7...98ca2c0 (14): > getlogin_r-tests: check return value rather than errno > getlogin_r-tests: fix various issues in recent change > fchdir: port 'open' and 'close' redefinitions to AIX 7.1 > update from texinfo > xalloc: don't potentially generate invalid code for xmemdup calls > getlogin_r-tests: avoid false failure under sudo/ssh etc. > getlogin-tests: avoid false failure under cron > mbrtowc.m4: fix a comment typo > mbrlen, mbrtowc: fix bug with empty input > doc: document mbrtowc and mbrlen problem with empty input > doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms > autoupdate > getlogin-tests: avoid false failure under sudo/ssh etc. > mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
