#!/bin/sh
#
# lesspipe: interpret certain file types for convenience
# first argument is the filename
# if nothing special is done, nothing is output and less just shows the file

exec 2>/dev/null

case "$1" in
  *.Z|*.taz|*.z|*.gz|*.tgz) exec gunzip < "$1" ;;
  *.bz) exec bunzip < "$1" ;;
  *.bz2) exec bunzip2 < "$1" ;;
esac
