freebsd-skq/usr.bin/less/lesspipe.sh
Lukas Ertl 46a3ae64b2 Fix handling of filenames containing whitespace.
PR:      bin/112860
MFC in:  3 days
2007-05-24 18:28:08 +00:00

17 lines
198 B
Bash

#! /bin/sh
# ex:ts=8
# $FreeBSD$
case "$1" in
*.Z)
exec uncompress -c "$1" 2>/dev/null
;;
*.gz)
exec gzip -d -c "$1" 2>/dev/null
;;
*.bz2)
exec bzip2 -d -c "$1" 2>/dev/null
;;
esac