From 9809a82b5983ac3184906fff2df48765dab372c8 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 13 Jan 2018 19:14:27 +0100 Subject: hush: fix raw ^C handlisg in single-quoted strings function old new delta parse_stream 2719 2754 +35 Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-misc/control_char1.right | 1 + shell/hush_test/hush-misc/control_char1.tests | 1 + shell/hush_test/hush-misc/for_with_bslashes.right | 1 + shell/hush_test/hush-misc/for_with_bslashes.tests | 8 ++------ 4 files changed, 5 insertions(+), 6 deletions(-) (limited to 'shell/hush_test/hush-misc') diff --git a/shell/hush_test/hush-misc/control_char1.right b/shell/hush_test/hush-misc/control_char1.right index 9498b420d..6f8c2533c 100644 --- a/shell/hush_test/hush-misc/control_char1.right +++ b/shell/hush_test/hush-misc/control_char1.right @@ -1,2 +1,3 @@  +b#c Done:0 diff --git a/shell/hush_test/hush-misc/control_char1.tests b/shell/hush_test/hush-misc/control_char1.tests index a2ebeba1b..0cfe60141 100755 --- a/shell/hush_test/hush-misc/control_char1.tests +++ b/shell/hush_test/hush-misc/control_char1.tests @@ -1,2 +1,3 @@ echo  +echo 'b#c' echo Done:$? diff --git a/shell/hush_test/hush-misc/for_with_bslashes.right b/shell/hush_test/hush-misc/for_with_bslashes.right index 02d96692c..cd8501050 100644 --- a/shell/hush_test/hush-misc/for_with_bslashes.right +++ b/shell/hush_test/hush-misc/for_with_bslashes.right @@ -5,4 +5,5 @@ b"c b'c b$c b`true`c +b#c Zero:0 diff --git a/shell/hush_test/hush-misc/for_with_bslashes.tests b/shell/hush_test/hush-misc/for_with_bslashes.tests index 363f3d85b..8acd9808a 100755 --- a/shell/hush_test/hush-misc/for_with_bslashes.tests +++ b/shell/hush_test/hush-misc/for_with_bslashes.tests @@ -1,9 +1,5 @@ -# UNFIXED BUG. -# commented-out words contain ^C character. -# It's a SPECIAL_VAR_SYMBOL, for now hush does not escape it. -# When it is fixed, update this test. - -for a in 'a' 'b\c' 'b\\c' 'b"c' "b'c" 'b$c' 'b`true`c' ### 'b#c' +# last word contains ^C character. +for a in 'a' 'b\c' 'b\\c' 'b"c' "b'c" 'b$c' 'b`true`c' 'b#c' do echo $a done -- cgit v1.2.3