diff options
author | Eric Andersen | 2001-11-10 10:49:42 +0000 |
---|---|---|
committer | Eric Andersen | 2001-11-10 10:49:42 +0000 |
commit | c52a6b0f1023268f021d04ddf224db5c5dd7b13e (patch) | |
tree | 7d6eb161fcd9d581d1d280503c05e4f2d4517dd0 /testsuite/sed | |
parent | e5d58c3dcc83c007dce35eaecf0a35c6ae598648 (diff) | |
download | busybox-c52a6b0f1023268f021d04ddf224db5c5dd7b13e.zip busybox-c52a6b0f1023268f021d04ddf224db5c5dd7b13e.tar.gz |
|2001-10-08 Rodney Brown <rbrown64@csc.com.au>
|
| * editors/sed.c: Fix multiline [aic] commands. Make # an endline
| comment for compatibility. Codespace reduction.
| * tests/testcases: Cope with move to subdirectories.
| * testsuite/sed/sed-aic-commands: Add.
|
| text data bss dec hex filename
| 3772 16 0 3788 ecc editors/sed.o
| 4516 16 0 4532 11b4 editors/sed.o.bu
Diffstat (limited to 'testsuite/sed')
-rw-r--r-- | testsuite/sed/sed-aic-commands | 134 |
1 files changed, 134 insertions, 0 deletions
diff --git a/testsuite/sed/sed-aic-commands b/testsuite/sed/sed-aic-commands new file mode 100644 index 0000000..b41c14a --- /dev/null +++ b/testsuite/sed/sed-aic-commands @@ -0,0 +1,134 @@ +cat - >input <<EOF +2i\\ +before 2 +5c\\ +Change 5 +10a\\ +After 10 +22i\\ +before 22\\ +Continued +25c\\ +Change 25\\ +Continued +20a\\ +After 20\\ +Continued + 32i\\ +before 32\\ +Continued 1\\ +Continued 2\\ +Continued 3 + 35c\\ +Change 35\\ +Continued 1\\ +Continued 2\\ +Continued 3 + 30a\\ +After 30\\ +Continued 1\\ +Continued 2\\ +Continued 3 +EOF +busybox sed -f input >output <<EOF + 1 y + 2 y + 3 y + 4 y + 5 y + 6 y + 7 y + 8 y + 9 y + 10 y + 11 y + 12 y + 13 y + 14 y + 15 y + 16 y + 17 y + 18 y + 19 y + 20 y + 21 y + 22 y + 23 y + 24 y + 25 y + 26 y + 27 y + 28 y + 29 y + 30 y + 31 y + 32 y + 33 y + 34 y + 35 y + 36 y + 37 y + 38 y + 39 y + 40 y +EOF +cmp -s output - <<EOF + 1 y +before 2 + 2 y + 3 y + 4 y +Change 5 + 6 y + 7 y + 8 y + 9 y + 10 y +After 10 + 11 y + 12 y + 13 y + 14 y + 15 y + 16 y + 17 y + 18 y + 19 y + 20 y +After 20 +Continued + 21 y +before 22 +Continued + 22 y + 23 y + 24 y +Change 25 +Continued + 26 y + 27 y + 28 y + 29 y + 30 y +After 30 +Continued 1 +Continued 2 +Continued 3 + 31 y +before 32 +Continued 1 +Continued 2 +Continued 3 + 32 y + 33 y + 34 y +Change 35 +Continued 1 +Continued 2 +Continued 3 + 36 y + 37 y + 38 y + 39 y + 40 y +EOF |