Diff for /parser3/tests/cat.sh between versions 1.2 and 1.5

version 1.2, 2008/01/21 15:21:05 version 1.5, 2024/11/24 16:11:41
Line 5  then Line 5  then
         exit $2          exit $2
 fi  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" ]  if [ $1 = "cgi" ]
 then  then
Line 12  then Line 25  then
 "  "
 fi  fi
   
   if [ $1 = "env" ]
   then
           eval "echo -n \"\$$2\""
   fi
   
 if [ -n "$5" ]  if [ -n "$5" ]
 then  then
         echo "$5"          echo "$5"
 fi  fi
   
   
 cat -s $3  cat -s $3
   
   
 if [ -n "$4" ]  if [ -n "$4" ]
 then  then
         exit $4          exit $4

Removed from v.1.2  
changed lines
  Added in v.1.5


E-mail: