ZZ=${ZZ:-$HOME/.zz}
-if [ "X$*" = X-h -o "X$*" = X--help ]; then
+if [ "$*" = -h -o "$*" = --help ]; then
exec cat<<EOD
zz is the generic clip board program. See also the edit helper program ezz.
The clip board is \$ZZ (default: \$HOME/.zz). Options and modes are:
EOD
fi
-if [ x"$1"x = x+x ]; then
+if [ "$1" = + ]; then
shift
exec cat -- "$@" >>$ZZ
fi
if [ -t 0 ]; then
- if [ x"$1"x = xx ]; then
+ if [ -z "$1" ]; then
exec cat -- $ZZ
- elif [ x"$1"x = x..x ]; then
+ elif [ "$1" = .. ]; then
exec cat -- $ZZ~
else
test -f $ZZ && mv $ZZ $ZZ~