hush: fix handling of \^C and "^C"
function old new delta parse_stream 2238 2252 +14 encode_string 243 256 +13 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 27/0) Total: 27 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
1
shell/hush_test/hush-misc/control_char3.right
Normal file
1
shell/hush_test/hush-misc/control_char3.right
Normal file
@@ -0,0 +1 @@
|
||||
hush: can't execute '': No such file or directory
|
2
shell/hush_test/hush-misc/control_char3.tests
Executable file
2
shell/hush_test/hush-misc/control_char3.tests
Executable file
@@ -0,0 +1,2 @@
|
||||
# (set argv0 to "SHELL" to avoid "/path/to/shell: blah" in error messages)
|
||||
$THIS_SH -c '\' SHELL
|
1
shell/hush_test/hush-misc/control_char4.right
Normal file
1
shell/hush_test/hush-misc/control_char4.right
Normal file
@@ -0,0 +1 @@
|
||||
hush: can't execute '-': No such file or directory
|
2
shell/hush_test/hush-misc/control_char4.tests
Executable file
2
shell/hush_test/hush-misc/control_char4.tests
Executable file
@@ -0,0 +1,2 @@
|
||||
# (set argv0 to "SHELL" to avoid "/path/to/shell: blah" in error messages)
|
||||
$THIS_SH -c '"-"' SHELL
|
Reference in New Issue
Block a user