source: trunk/third/sed/testsuite/spencer.sh @ 17271

Revision 17271, 473 bytes checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17270, which included commits to RCS files with non-trunk default branches.
Line 
1#! /bin/sh
2
3#
4# this uses the -r command line option to sed (--rx-test) which changes
5# the regex syntax used to that of POSIX egrep for the purposes of these
6# tests.
7#
8
9sed=${1-sed}
10
11$sed -e "\
12  /^0:/s,0:\(.*\):\(.*\),echo '\2' | $sed -re '/\1/d' | $sed -e,
13  /^1:/s,1:\(.*\):\(.*\),echo '\2' | $sed -re '/\1/!d' | $sed -e,
14  /^2:/s,2:\(.*\):\(.*\),echo '\2' | $sed -re '/\1/p' | $sed -e '/bad regexp:/d' -e," | \
15  awk '{print $0 " s\"/.*/Test\ #" NR "\ failed!/\""}'
Note: See TracBrowser for help on using the repository browser.