Handle presumably uncompressed files with cat; exec the handlers.
MFC after: 1 week
This commit is contained in:
parent
27e13edce9
commit
40d28fe140
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user