diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-29 01:20:09 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-29 01:20:09 +0200 |
commit | 09449630fbf0331a76a9d055fcbff0774c57ab65 (patch) | |
tree | ce6e43bbb9efe4a76296f04457e98b79cf874459 /testsuite | |
parent | 97af2ff8caa782f623e79408f0dfe608c878d5a6 (diff) |
grep: fix -E + {range}; fix -o not printing all matches (bug 489)
two different bugs, one with EXTRA_COMPAT, other without.
function old new delta
grep_file 1132 1129 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/grep.tests | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/grep.tests b/testsuite/grep.tests index 8cee1b9ee..7e3dff0d6 100755 --- a/testsuite/grep.tests +++ b/testsuite/grep.tests @@ -85,4 +85,9 @@ testing "grep is also egrep" "egrep foo" "foo\n" "" "foo\nbar\n" testing "egrep is not case insensitive" \ "egrep foo ; [ \$? -ne 0 ] && echo yes" "yes\n" "" "FOO\n" +testing "grep -E -o prints all matches" \ + "grep -E -o '([[:xdigit:]]{2}[:-]){5}[[:xdigit:]]{2}'" \ + "00:19:3E:00:AA:5E\n00:1D:60:3D:3A:FB\n00:22:43:49:FB:AA\n" \ + "" "00:19:3E:00:AA:5E 00:1D:60:3D:3A:FB 00:22:43:49:FB:AA\n" + exit $FAILCOUNT |