summaryrefslogtreecommitdiffstats
path: root/tools/regression
diff options
context:
space:
mode:
authordds <dds@FreeBSD.org>2008-11-11 17:10:24 +0000
committerdds <dds@FreeBSD.org>2008-11-11 17:10:24 +0000
commit84b8296ef73b14ce0d976a5ab391ac245a826fde (patch)
tree41140cfdfce3bea098d6f58b37ba0c7dc0d37dc5 /tools/regression
parent8d12469978678c211dcedcae430fb7091bd504b6 (diff)
downloadFreeBSD-src-84b8296ef73b14ce0d976a5ab391ac245a826fde.zip
FreeBSD-src-84b8296ef73b14ce0d976a5ab391ac245a826fde.tar.gz
Add a test for the "or more" part of the following POSIX specification.
"A function can be preceded by one or more '!' characters, in which case the function shall be applied if the addresses do not select the pattern space."
Diffstat (limited to 'tools/regression')
-rw-r--r--tools/regression/usr.bin/sed/regress.not.out1
-rw-r--r--tools/regression/usr.bin/sed/regress.sh3
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/regression/usr.bin/sed/regress.not.out b/tools/regression/usr.bin/sed/regress.not.out
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/tools/regression/usr.bin/sed/regress.not.out
@@ -0,0 +1 @@
+foo
diff --git a/tools/regression/usr.bin/sed/regress.sh b/tools/regression/usr.bin/sed/regress.sh
index 34b0cb7..98282ef 100644
--- a/tools/regression/usr.bin/sed/regress.sh
+++ b/tools/regression/usr.bin/sed/regress.sh
@@ -2,7 +2,7 @@
REGRESSION_START($1)
-echo '1..24'
+echo '1..25'
REGRESSION_TEST(`G', `sed G < regress.in')
REGRESSION_TEST(`P', `sed P < regress.in')
@@ -69,5 +69,6 @@ REGRESSION_TEST(`icase3', `sed s/SED/Foo/ < regress.in')
REGRESSION_TEST(`hanoi', `echo ":abcd: : :" | sed -f hanoi.sed')
REGRESSION_TEST(`math', `echo "4+7*3+2^7/3" | sed -f math.sed')
+REGRESSION_TEST(`not', `echo foo | sed "1!!s/foo/bar/"')
REGRESSION_END()
OpenPOWER on IntegriCloud