7d3a298ba9
a zero-length string. This shows bugs in the s///g and s///2+ cases.
16 lines
517 B
Bash
16 lines
517 B
Bash
# $FreeBSD$
|
|
|
|
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(`bcb', `sed s/X/$(jot -n -bx -s "" 2043)\\\\zz/ < regress.in')
|
|
REGRESSION_TEST(`y', `echo -n foo | sed y/o/O/')
|
|
REGRESSION_TEST(`sg', `echo foo | sed s/,*/,/g')
|
|
REGRESSION_TEST(`s3', `echo foo | sed s/,*/,/3')
|
|
REGRESSION_TEST(`s4', `echo foo | sed s/,*/,/4')
|
|
REGRESSION_TEST(`s5', `echo foo | sed s/,*/,/5')
|
|
|
|
REGRESSION_END()
|