diff options
Diffstat (limited to 'shell/hush_test/hush-vars/param_expand_indicate_error.tests')
-rwxr-xr-x | shell/hush_test/hush-vars/param_expand_indicate_error.tests | 58 |
1 files changed, 29 insertions, 29 deletions
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 6b431d311..77834fedd 100755 --- a/shell/hush_test/hush-vars/param_expand_indicate_error.tests +++ b/shell/hush_test/hush-vars/param_expand_indicate_error.tests @@ -1,40 +1,40 @@ # do all of these in subshells since it's supposed to error out # first try some invalid patterns -hush -c 'echo ${?}' -hush -c 'echo ${:?}' +"$THIS_SH" -c 'echo ${?}' +"$THIS_SH" -c 'echo ${:?}' # then some funky ones -hush -c 'echo ${#?}' -hush -c 'echo ${#:?}' +"$THIS_SH" -c 'echo ${#?}' +"$THIS_SH" -c 'echo ${#:?}' # now some valid ones -hush -c 'set --; echo _$1' -hush -c 'set --; echo _${1?}' -hush -c 'set --; echo _${1:?}' -hush -c 'set --; echo _${1?word}' -hush -c 'set --; echo _${1:?word}' +"$THIS_SH" -c 'set --; echo _$1' +"$THIS_SH" -c 'set --; echo _${1?}' +"$THIS_SH" -c 'set --; echo _${1:?}' +"$THIS_SH" -c 'set --; echo _${1?word}' +"$THIS_SH" -c 'set --; echo _${1:?word}' -hush -c 'set -- aaaa; echo _$1' -hush -c 'set -- aaaa; echo _${1?}' -hush -c 'set -- aaaa; echo _${1:?}' -hush -c 'set -- aaaa; echo _${1?word}' -hush -c 'set -- aaaa; echo _${1:?word}' +"$THIS_SH" -c 'set -- aaaa; echo _$1' +"$THIS_SH" -c 'set -- aaaa; echo _${1?}' +"$THIS_SH" -c 'set -- aaaa; echo _${1:?}' +"$THIS_SH" -c 'set -- aaaa; echo _${1?word}' +"$THIS_SH" -c 'set -- aaaa; echo _${1:?word}' -hush -c 'unset f; echo _$f' -hush -c 'unset f; echo _${f?}' -hush -c 'unset f; echo _${f:?}' -hush -c 'unset f; echo _${f?word}' -hush -c 'unset f; echo _${f:?word}' +"$THIS_SH" -c 'unset f; echo _$f' +"$THIS_SH" -c 'unset f; echo _${f?}' +"$THIS_SH" -c 'unset f; echo _${f:?}' +"$THIS_SH" -c 'unset f; echo _${f?word}' +"$THIS_SH" -c 'unset f; echo _${f:?word}' -hush -c 'f=; echo _$f' -hush -c 'f=; echo _${f?}' -hush -c 'f=; echo _${f:?}' -hush -c 'f=; echo _${f?word}' -hush -c 'f=; echo _${f:?word}' +"$THIS_SH" -c 'f=; echo _$f' +"$THIS_SH" -c 'f=; echo _${f?}' +"$THIS_SH" -c 'f=; echo _${f:?}' +"$THIS_SH" -c 'f=; echo _${f?word}' +"$THIS_SH" -c 'f=; echo _${f:?word}' -hush -c 'f=fff; echo _$f' -hush -c 'f=fff; echo _${f?}' -hush -c 'f=fff; echo _${f:?}' -hush -c 'f=fff; echo _${f?word}' -hush -c 'f=fff; echo _${f:?word}' +"$THIS_SH" -c 'f=fff; echo _$f' +"$THIS_SH" -c 'f=fff; echo _${f?}' +"$THIS_SH" -c 'f=fff; echo _${f:?}' +"$THIS_SH" -c 'f=fff; echo _${f?word}' +"$THIS_SH" -c 'f=fff; echo _${f:?word}' |