summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-02-04 05:53:50 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-02-04 05:53:50 +0000
commit7ae9a60262917bae9ffe0b7a63e84e4177a687f9 (patch)
treeb119098515e20e800b4796beccfdb77711def2eb
parent77612aa1f9873569e9861ee65b9c341098424f6a (diff)
Test ^ and $ in -w mode; currently fails. Fix awaiting approval...
-rw-r--r--regress/usr.bin/grep/Makefile10
-rw-r--r--regress/usr.bin/grep/t17.in1
-rw-r--r--regress/usr.bin/grep/t17.out1
3 files changed, 10 insertions, 2 deletions
diff --git a/regress/usr.bin/grep/Makefile b/regress/usr.bin/grep/Makefile
index ad7c17c7d47..544f6dc8cbd 100644
--- a/regress/usr.bin/grep/Makefile
+++ b/regress/usr.bin/grep/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.8 2004/01/25 21:28:35 millert Exp $
+# $OpenBSD: Makefile,v 1.9 2004/02/04 05:53:49 millert Exp $
REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16
@@ -50,6 +50,12 @@ t15:
t16:
grep -w to ${.CURDIR}/t15.in | diff - ${.CURDIR}/t15.out
-.PHONY: t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16
+t17:
+ grep -w '^foo' ${.CURDIR}/t17.in | diff - ${.CURDIR}/t17.out
+
+t18:
+ grep -w '^foo$$' ${.CURDIR}/t17.in | diff - ${.CURDIR}/t17.out
+
+.PHONY: t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/grep/t17.in b/regress/usr.bin/grep/t17.in
new file mode 100644
index 00000000000..257cc5642cb
--- /dev/null
+++ b/regress/usr.bin/grep/t17.in
@@ -0,0 +1 @@
+foo
diff --git a/regress/usr.bin/grep/t17.out b/regress/usr.bin/grep/t17.out
new file mode 100644
index 00000000000..257cc5642cb
--- /dev/null
+++ b/regress/usr.bin/grep/t17.out
@@ -0,0 +1 @@
+foo