shelltest.od: test that $1/$2/$3 are set correctly in "." scripts.

dash seems to fail this one, and it's not pretty.
This commit is contained in:
Avery Pennarun 2011-02-28 22:02:06 -08:00
commit ee32a965d8
2 changed files with 8 additions and 0 deletions

View file

@ -289,4 +289,10 @@ lt
false
. ./nothing.od || warn 114
# this one seems to be a bug in some versions of dash: the parameters to the
# '.' command must not be ignored.
set x y z
. ./dotparams.od a b || fail 115
[ "$1-$2-$3" = "x-y-z" ] || fail 116
exit $FAIL