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

2
t/dotparams.od Normal file
View file

@ -0,0 +1,2 @@
# call this as ". ./dotparams.od a b" from shelltest.od
[ "$1" = a ] && [ "$2" = b ] && [ "$#" = 2 ] || fail 115