use sleep rather than usleep
[oweals/busybox.git] / shell / hush_test / hush-vars / param_expand_indicate_error.tests
index 6b431d311493ad2703db522f82a3a7d98dcaf827..77834fedd0837ebdbdd062034113ae7217fd8f8d 100755 (executable)
@@ -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}'