chiark / gitweb /
bin/mdw-build: Remove vestigial `-r' option.
[profile] / bin / mdw-pager
CommitLineData
b20bfd83
MW
1#! /bin/sh
2
3set -e
4pager=${MDW_PAGER-less}
5[ -t 1 ] || TERM=dumb
6case "$PAGER,$TERM" in
7a24847d 7 mdw-pager,dumb | \
8f72c9d1 8 mdw-pager,emacs | mdw-pager,emacs-grep)
7a24847d 9 pager=cat;;
b20bfd83
MW
10 mdw-pager,*);;
11 *,*) pager=$PAGER;;
12esac
13exec $pager "$@"