From 1f1911239c0874d49a31d0ef2e618d0a1086a8df Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 11 Jan 2018 13:17:30 +0100 Subject: hush: fix handling of ^C in eval function old new delta run_list 1044 1259 +215 builtin_eval 45 126 +81 expand_strvec_to_string 91 - -91 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 2/0 up/down: 296/-91) Total: 205 bytes Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-misc/control_char2.right | 2 ++ shell/hush_test/hush-misc/control_char2.tests | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 shell/hush_test/hush-misc/control_char2.right create mode 100755 shell/hush_test/hush-misc/control_char2.tests (limited to 'shell/hush_test/hush-misc') diff --git a/shell/hush_test/hush-misc/control_char2.right b/shell/hush_test/hush-misc/control_char2.right new file mode 100644 index 0000000..9498b42 --- /dev/null +++ b/shell/hush_test/hush-misc/control_char2.right @@ -0,0 +1,2 @@ + +Done:0 diff --git a/shell/hush_test/hush-misc/control_char2.tests b/shell/hush_test/hush-misc/control_char2.tests new file mode 100755 index 0000000..e77d7a1 --- /dev/null +++ b/shell/hush_test/hush-misc/control_char2.tests @@ -0,0 +1,3 @@ +c=`printf '\3'` +eval "echo $c" +echo Done:$? -- cgit v1.1