--- parser3/tests/cat.sh 2007/11/16 08:21:13 1.1 +++ parser3/tests/cat.sh 2008/01/21 15:21:05 1.2 @@ -1,5 +1,11 @@ #!/bin/sh +if [ $1 = "halt" ] +then + exit $2 +fi + + if [ $1 = "cgi" ] then echo "content-type: $2 @@ -7,10 +13,17 @@ then fi -if [ -n "$4" ] +if [ -n "$5" ] then - echo "$4" + echo "$5" fi + cat -s $3 + +if [ -n "$4" ] +then + exit $4 +fi +