minimal/do: handle nonzero exit codes and set $1/$2 correctly.

Also add some tests to confirm this.
This commit is contained in:
Avery Pennarun 2010-11-17 18:24:40 -08:00
commit b9853d3858
6 changed files with 27 additions and 8 deletions

3
t/default.args.do Normal file
View file

@ -0,0 +1,3 @@
[ "$1" = "test" ]
[ "$2" = ".args" ]
[ "$3" != "test.args" ]