Changeset 1770 in MondoRescue for branches/stable/mindi-busybox/testsuite/sed.tests
- Timestamp:
- Nov 6, 2007, 11:01:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi-busybox/testsuite/sed.tests
r902 r1770 117 117 "woo" "woo" 118 118 testing "sed empty file plus cat" "sed -e 's/nohit//' input -" "one\ntwo" \ 119 "" "one\ntwo" 119 "" "one\ntwo" 120 120 testing "sed cat plus empty file" "sed -e 's/nohit//' input -" "one\ntwo" \ 121 121 "one\ntwo" "" … … 139 139 testing "sed clusternewline" \ 140 140 "sed -e '/one/a 111' -e '/two/i 222' -e p input -" \ 141 "one\none\n111\n222\ntwo\ntwo" "one" "two" 141 "one\none\n111\n222\ntwo\ntwo" "one" "two" 142 testing "sed subst+write" \ 143 "sed -e 's/i/z/' -e 'woutputw' input -; echo -n X; cat outputw" \ 144 "thzngy\nagaznXthzngy\nagazn" "thingy" "again" 145 rm outputw 146 testing "sed trailing NUL" \ 147 "sed 's/i/z/' input -" \ 148 "a\0b\0\nc" "a\0b\0" "c" 149 testing "sed escaped newline in command" \ 150 "sed 's/a/z\\ 151 z/' input" \ 152 "z\nz" "a" "" 142 153 143 154 # Test end-of-file matching behavior … … 147 158 testing "sed match EOF two files" "sed -e '"'$p'"' input -" \ 148 159 "one\ntwo\nthree\nfour\nfour" "one\ntwo" "three\nfour" 160 # sed match EOF inline: gnu sed 4.1.5 outputs this: 161 #00000000 6f 6e 65 0a 6f 6f 6b 0a 6f 6f 6b 0a 74 77 6f 0a |one.ook.ook.two.| 162 #00000010 0a 74 68 72 65 65 0a 6f 6f 6b 0a 6f 6f 6b 0a 66 |.three.ook.ook.f| 163 #00000020 6f 75 72 |our| 164 # which looks buggy to me. 149 165 echo -ne "three\nfour" > input2 150 166 testing "sed match EOF inline" \
Note:
See TracChangeset
for help on using the changeset viewer.