Handle presumably uncompressed files with cat; exec the handlers.

MFC after:	1 week
This commit is contained in:
Dag-Erling Smørgrav 2005-05-17 11:08:11 +00:00
parent 27e13edce9
commit 40d28fe140

View File

@ -4,10 +4,16 @@
# $FreeBSD$
case "$1" in
*.Z) uncompress -c $1 2>/dev/null
*.Z)
exec uncompress -c $1 2>/dev/null
;;
*.gz) gzip -d -c $1 2>/dev/null
*.gz)
exec gzip -d -c $1 2>/dev/null
;;
*.bz2) bzip2 -d -c $1 2>/dev/null
*.bz2)
exec bzip2 -d -c $1 2>/dev/null
;;
*)
exec cat $1 2>/dev/null
;;
esac