From 0915c4b98533502b23b8021d0aa7b1a8c7f7ea4f Mon Sep 17 00:00:00 2001 From: Mark Whitley Date: Mon, 11 Jun 2001 23:50:06 +0000 Subject: - Fixed bug where you couldn't mix line number and regexes in two-address cmds - Fixed bug where you couldn't use two addresses for a 'c' cmd - Moved the do_sed_cmd function into process_file to simplify some things - Reduced a buncha lines of code in the process --- tests/testcases | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/testcases b/tests/testcases index 5043c30..a38d317 100644 --- a/tests/testcases +++ b/tests/testcases @@ -294,11 +294,19 @@ route # rpmunpack -# sed - we can do some one-liners here; probably needs it's own input file +# sed - we can do some one-liners here, some testing is a little +# difficult to do in just this space (like a,i,c cmds). + +# test ^$ matching echo foo | sed -ne '/^$/p' +echo -e "foo\\n\\nbar" | sed -ne '/^$/p' + sed -e '/test$/d' testcases sed -e '/^echo/d' testcases sed -e '/test/s/dangerous/PELIGROSO/' testcases +sed -ne '1,/getopt/p' ../pwd.c +sed -e '/getopt/r ../pwd.c' ../sed.c + # setkeycodes -- cgit v1.1