File:  [parser3project] / parser3 / tests / cat.sh
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Mon Jan 21 15:21:05 2008 UTC (18 years, 5 months ago) by misha
Branches: MAIN
CVS tags: release_3_4_0, release_3_3_0, release_3_2_3, HEAD
- more tests for file::exec/cgi

#!/bin/sh

if [ $1 = "halt" ]
then
	exit $2
fi


if [ $1 = "cgi" ]
then
	echo "content-type: $2
"
fi


if [ -n "$5" ]
then
	echo "$5"
fi


cat -s $3


if [ -n "$4" ]
then
	exit $4
fi


E-mail: