diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-04-03 19:15:18 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-04-03 19:15:18 +0000 |
commit | fbf0d37c9a2047d9c4d607bf2b2f73055c912f3c (patch) | |
tree | 5e479222a386c44c6d53478e2be3ae282a88263f /regress/usr.bin/grep | |
parent | 90dbf46dcc517309179b2d183d29024aaa424174 (diff) |
Test for egrep -w "foo|bar"
Diffstat (limited to 'regress/usr.bin/grep')
-rw-r--r-- | regress/usr.bin/grep/Makefile | 9 | ||||
-rw-r--r-- | regress/usr.bin/grep/t23.in | 7 | ||||
-rw-r--r-- | regress/usr.bin/grep/t23.out | 5 |
3 files changed, 18 insertions, 3 deletions
diff --git a/regress/usr.bin/grep/Makefile b/regress/usr.bin/grep/Makefile index 9c58d59b4c0..e590df2bb6a 100644 --- a/regress/usr.bin/grep/Makefile +++ b/regress/usr.bin/grep/Makefile @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile,v 1.11 2004/10/03 19:24:58 otto Exp $ +# $OpenBSD: Makefile,v 1.12 2005/04/03 19:15:17 otto Exp $ REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 \ - t18 t19 t20 t21 t22 + t18 t19 t20 t21 t22 t23 t1: grep t.s ${.CURDIR}/in | diff - ${.CURDIR}/t1.out @@ -88,7 +88,10 @@ t21: t22: grep -l 'a.*b' ${.CURDIR}/t22.in +t23: + egrep -w 'word1|word2|word3' ${.CURDIR}/t23.in + .PHONY: t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 -.PHONY: t21 t22 +.PHONY: t21 t22 t23 .include <bsd.regress.mk> diff --git a/regress/usr.bin/grep/t23.in b/regress/usr.bin/grep/t23.in new file mode 100644 index 00000000000..e75a4be9ea9 --- /dev/null +++ b/regress/usr.bin/grep/t23.in @@ -0,0 +1,7 @@ +word1 +word1-hyphen +word1underscore +nomatch +word2| +|word2| +-word3- diff --git a/regress/usr.bin/grep/t23.out b/regress/usr.bin/grep/t23.out new file mode 100644 index 00000000000..2a69739c20f --- /dev/null +++ b/regress/usr.bin/grep/t23.out @@ -0,0 +1,5 @@ +word1 +word1-hyphen +word2| +|word2| +-word3- |