chiark
/
gitweb
/
~mdw
/
profile
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
hacks/ssh: Pass the requested port to `ssh -Ocheck'.
[profile]
/
bin
/
mdw-pager
1
#! /bin/sh
2
3
set -e
4
pager=${MDW_PAGER-less}
5
[ -t 1 ] || TERM=dumb
6
case "$PAGER,$TERM" in
7
mdw-pager,dumb | \
8
mdw-pager,emacs | \
9
mdw-pager,eterm*)
10
pager=cat;;
11
mdw-pager,*);;
12
*,*) pager=$PAGER;;
13
esac
14
exec $pager "$@"