diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-06-25 12:10:09 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-06-25 12:10:09 +0000 |
commit | 9cfbe015d8703b83cfffe95627ef2ad7a89db101 (patch) | |
tree | 7e9be44a0e26aa0a37e8d13c67674e01e2cc64b5 /tools | |
parent | c239ae84e286d578b8f5f49fcb7c08bdaf1ec352 (diff) | |
download | FreeBSD-src-9cfbe015d8703b83cfffe95627ef2ad7a89db101.zip FreeBSD-src-9cfbe015d8703b83cfffe95627ef2ad7a89db101.tar.gz |
Add a regression test for transliterate which happens to match characters
at an EOL/EOF, and therefore should catch the broken behaviour fixed by
Tim J. Robbins in sed(1) recently.
Suggested by: obrien
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/usr.bin/sed/regress.sh | 1 | ||||
-rw-r--r-- | tools/regression/usr.bin/sed/regress.y.out | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tools/regression/usr.bin/sed/regress.sh b/tools/regression/usr.bin/sed/regress.sh index bec79f1..e714af2 100644 --- a/tools/regression/usr.bin/sed/regress.sh +++ b/tools/regression/usr.bin/sed/regress.sh @@ -5,5 +5,6 @@ REGRESSION_START($1) REGRESSION_TEST(`G', `sed G < regress.in') REGRESSION_TEST(`P', `sed P < regress.in') REGRESSION_TEST(`psl', `sed \$!g\;P\;D < regress.in') +REGRESSION_TEST(`y', `sed y/\(\)/{}/ < regress.in') REGRESSION_END() diff --git a/tools/regression/usr.bin/sed/regress.y.out b/tools/regression/usr.bin/sed/regress.y.out new file mode 100644 index 0000000..89671f3 --- /dev/null +++ b/tools/regression/usr.bin/sed/regress.y.out @@ -0,0 +1,4 @@ +input +data +for validation +of sed{1} |