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."
This commit is contained in:
parent
ab0d10f68e
commit
b71c319dc6
1
tools/regression/usr.bin/sed/regress.not.out
Normal file
1
tools/regression/usr.bin/sed/regress.not.out
Normal file
@ -0,0 +1 @@
|
||||
foo
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user