7 -*) OPTIONS="$OPTIONS $ARG";;
8 *) FILES="$FILES $ARG";;
11 if test -z "$FILES"; then
12 echo "Usage: zdiff [diff_options] file [file]"
16 if test $# -eq 1; then
17 FILE=`expr $1 : '\(.*\)\.Z' '|' $1`
18 zcat $FILE | diff $OPTIONS - $FILE
20 elif test $# -eq 2; then
23 *.Z) F=`basename $2 .Z`
25 zcat $1 | diff $OPTIONS - /tmp/$F.$$
27 *) zcat $1 | diff $OPTIONS - $2;;
30 *.Z) zcat $2 | diff $OPTIONS $1 -
32 *) diff $OPTIONS $1 $2
38 echo "Usage: zdiff [diff_options] file [file]"