hush: add two testcases

This commit is contained in:
Denis Vlasenko 2009-04-20 10:52:31 +00:00
parent e41fdbc279
commit d40fa397e4
4 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,2 @@
var=val
var=old

View File

@ -0,0 +1,6 @@
# UNFIXED BUG
var=old
f() { echo "var=$var"; }
var=val f
echo "var=$var"

View File

@ -0,0 +1,5 @@
params: a b c
'f 1 2 3' called
params: a b c
'f 1 2 3' called
params: a b c

View File

@ -0,0 +1,10 @@
# UNFIXED BUG
f() { echo "'f $1 $2 $3' called"; }
set -- a b c
echo "params: $1 $2 $3"
f 1 2 3
echo "params: $1 $2 $3"
true | f 1 2 3
echo "params: $1 $2 $3"