diff options
author | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-06-11 23:50:06 +0000 |
---|---|---|
committer | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-06-11 23:50:06 +0000 |
commit | 272fd187394ada246db05d4505257dd342948331 (patch) | |
tree | 330947eca0179548f16126612af00dae488dd64d /tests | |
parent | ed2bd51c9599330209fbad05e7148f16ba569cd8 (diff) | |
download | busybox-w32-272fd187394ada246db05d4505257dd342948331.tar.gz busybox-w32-272fd187394ada246db05d4505257dd342948331.tar.bz2 busybox-w32-272fd187394ada246db05d4505257dd342948331.zip |
- 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
git-svn-id: svn://busybox.net/trunk/busybox@2811 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testcases | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/testcases b/tests/testcases index 5043c309e..a38d31770 100644 --- a/tests/testcases +++ b/tests/testcases | |||
@@ -294,11 +294,19 @@ route | |||
294 | 294 | ||
295 | # rpmunpack | 295 | # rpmunpack |
296 | 296 | ||
297 | # sed - we can do some one-liners here; probably needs it's own input file | 297 | # sed - we can do some one-liners here, some testing is a little |
298 | # difficult to do in just this space (like a,i,c cmds). | ||
299 | |||
300 | # test ^$ matching | ||
298 | echo foo | sed -ne '/^$/p' | 301 | echo foo | sed -ne '/^$/p' |
302 | echo -e "foo\\n\\nbar" | sed -ne '/^$/p' | ||
303 | |||
299 | sed -e '/test$/d' testcases | 304 | sed -e '/test$/d' testcases |
300 | sed -e '/^echo/d' testcases | 305 | sed -e '/^echo/d' testcases |
301 | sed -e '/test/s/dangerous/PELIGROSO/' testcases | 306 | sed -e '/test/s/dangerous/PELIGROSO/' testcases |
307 | sed -ne '1,/getopt/p' ../pwd.c | ||
308 | sed -e '/getopt/r ../pwd.c' ../sed.c | ||
309 | |||
302 | 310 | ||
303 | # setkeycodes | 311 | # setkeycodes |
304 | 312 | ||