--- parser3/tests/cat.sh 2010/11/15 23:35:20 1.3 +++ parser3/tests/cat.sh 2024/11/24 16:11:41 1.5 @@ -11,12 +11,25 @@ then exit 0 fi +if [ $1 = "args" ] +then + for arg in "$@"; do + echo -n "\"$arg\" " + done + exit 0 +fi + if [ $1 = "cgi" ] then echo "content-type: $2 " fi +if [ $1 = "env" ] +then + eval "echo -n \"\$$2\"" +fi + if [ -n "$5" ] then echo "$5"