--- parser3/tests/cat.sh 2008/01/21 15:21:05 1.2 +++ parser3/tests/cat.sh 2024/10/22 02:46:46 1.4 @@ -5,6 +5,19 @@ then exit $2 fi +if [ $1 = "stdin" ] +then + cat + exit 0 +fi + +if [ $1 = "args" ] +then + for arg in "$@"; do + echo -n "\"$arg\" " + done + exit 0 +fi if [ $1 = "cgi" ] then @@ -12,16 +25,13 @@ then " fi - if [ -n "$5" ] then echo "$5" fi - cat -s $3 - if [ -n "$4" ] then exit $4