#! /bin/csh -fe # Tests wether the ratio $1/$2 is the same as $3/$4. # Returns status=0 if false, status=1 if true if ( $#argv != 4 ) exit 1 @ r = ( $1 * $4 ) - ( $2 * $3 ) if ( $r != 0 ) then exit 1 else exit 0 endif