From 645c697372b714f1293a37a185aa62965f600479 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 25 Jul 2017 15:18:57 +0200 Subject: hush: treat ${#?} as "length of $?" Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-vars/param_expand_indicate_error.right | 2 +- shell/hush_test/hush-vars/param_expand_indicate_error.tests | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'shell/hush_test') diff --git a/shell/hush_test/hush-vars/param_expand_indicate_error.right b/shell/hush_test/hush-vars/param_expand_indicate_error.right index 06fcc5104..acf293893 100644 --- a/shell/hush_test/hush-vars/param_expand_indicate_error.right +++ b/shell/hush_test/hush-vars/param_expand_indicate_error.right @@ -1,5 +1,5 @@ hush: syntax error: unterminated ${name} -0 +1 0 ==== _ diff --git a/shell/hush_test/hush-vars/param_expand_indicate_error.tests b/shell/hush_test/hush-vars/param_expand_indicate_error.tests index be14b1e37..5f946e39a 100755 --- a/shell/hush_test/hush-vars/param_expand_indicate_error.tests +++ b/shell/hush_test/hush-vars/param_expand_indicate_error.tests @@ -5,7 +5,7 @@ "$THIS_SH" -c 'echo ${:?}' # then some funky ones -# note: bash prints 1 - treats it as "length of $#"? We print 0 +# note: bash prints 1 - treats it as "length of $#" "$THIS_SH" -c 'echo ${#?}' # bash prints 0 "$THIS_SH" -c 'echo ${#:?}' -- cgit v1.2.3