Handle presumably uncompressed files with cat; exec the handlers.
MFC after: 1 week
This commit is contained in:
parent
27e13edce9
commit
40d28fe140
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146313
@ -4,10 +4,16 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
case "$1" in
|
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
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user