diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hush.c | 2 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/func4.tests | 2 | ||||
-rwxr-xr-x | shell/msh_test/msh-execution/nested_break.tests | 18 |
3 files changed, 11 insertions, 11 deletions
diff --git a/shell/hush.c b/shell/hush.c index 9a9b5bb..e0c5626 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -2037,7 +2037,7 @@ static const char *next_brace_sub(const char *cp) break; cp++; continue; - } + } /*{*/ if ((*cp == '}' && depth-- == 0) || (*cp == ',' && depth == 0)) break; if (*cp++ == '{') /*}*/ diff --git a/shell/hush_test/hush-misc/func4.tests b/shell/hush_test/hush-misc/func4.tests index 33b1663..74c1b9a 100755 --- a/shell/hush_test/hush-misc/func4.tests +++ b/shell/hush_test/hush-misc/func4.tests @@ -2,6 +2,6 @@ func() { eval "echo \"\${val_${1}}\"" } -val_x=24 +val_x=24 (func x) echo Done diff --git a/shell/msh_test/msh-execution/nested_break.tests b/shell/msh_test/msh-execution/nested_break.tests index f2e6f81..1a954d2 100755 --- a/shell/msh_test/msh-execution/nested_break.tests +++ b/shell/msh_test/msh-execution/nested_break.tests @@ -3,15 +3,15 @@ n=0 while : do - echo A - while : - do - echo B - break - done - echo iteration - [ $n = 1 ] && break + echo A + while : + do + echo B + break + done + echo iteration + [ $n = 1 ] && break echo C - n=`expr $n + 1` + n=`expr $n + 1` done echo D |