Lines 134-139
commands_on_stdin_body()
Link Here
|
134 |
atf_check -o 'empty' sed -f - < insert_x |
134 |
atf_check -o 'empty' sed -f - < insert_x |
135 |
} |
135 |
} |
136 |
|
136 |
|
|
|
137 |
atf_test_case bracket_y |
138 |
bracket_y_head() |
139 |
{ |
140 |
atf_set "descr" "Verify '[' is ordinary character for 'y' command" |
141 |
} |
142 |
bracket_y_body() |
143 |
{ |
144 |
atf_check -e empty -o ignore echo | sed 'y/[/x/' |
145 |
atf_check -e empty -o ignore echo | sed 'y/[]/xy/' |
146 |
atf_check -e empty -o ignore echo | sed 'y/[a]/xyz/' |
147 |
atf_check -e empty -o "inline:zyx" echo '][a' | sed 'y/[a]/xyz/' |
148 |
atf_check -e empty -o "inline:bracket\n" echo 'bra[ke]' | sed 'y/[]/ct/' |
149 |
atf_check -e empty -o "inline:bracket\n" \ |
150 |
echo 'bra[ke]' | sed 'y[\[][ct[' |
151 |
} |
152 |
|
137 |
atf_init_test_cases() |
153 |
atf_init_test_cases() |
138 |
{ |
154 |
{ |
139 |
atf_add_test_case inplace_command_q |
155 |
atf_add_test_case inplace_command_q |
Lines 142-145
atf_init_test_cases()
Link Here
|
142 |
atf_add_test_case escape_subst |
158 |
atf_add_test_case escape_subst |
143 |
atf_add_test_case commands_on_stdin |
159 |
atf_add_test_case commands_on_stdin |
144 |
atf_add_test_case hex_subst |
160 |
atf_add_test_case hex_subst |
|
|
161 |
atf_add_test_case bracket_y |
145 |
} |
162 |
} |