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