1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146313

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