1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00
freebsd/usr.bin/less/lesspipe.sh
Xin LI 9dd54fbb7e In rev. 1.2 we have introduced a fallback handler for files with unknown
extensions.  This seems to be unnecessary and prevents less(1) from being
able to detect file changes, so remove the part.

Submitted by:	Eric Huss <e-huss netmeridian com>
PR:		bin/102624
Discussed with:	des
MFC After:	3 days
2006-08-30 08:20:34 +00:00

17 lines
192 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