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:
Diomidis Spinellis 2008-11-11 17:10:24 +00:00
parent ab0d10f68e
commit b71c319dc6
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1 @@
foo

View File

@ -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()