i=0
while true;do
FILE=$DIR/`printf %02d $i`
- if ! test -f $FILE;then
+ if ! test -f $FILE.in;then
break
fi
i=$[$i+1]
done
-tee $FILE.in | "$0"-orig "$@" | tee $FILE.out
+if [ "$*" != --version ];then tee $FILE.in;fi | "$0"-orig "$@" | tee $FILE.out