Commit | Line | Data |
---|---|---|
9092f96a | 1 | #!/bin/sh - |
473fb73d | 2 | # |
9092f96a KB |
3 | # Copyright (c) 1988 Regents of the University of California. |
4 | # All rights reserved. The Berkeley software License Agreement | |
5 | # specifies the terms and conditions for redistribution. | |
473fb73d | 6 | # |
9092f96a KB |
7 | # @(#)ching.sh 4.3 (Berkeley) %G% |
8 | # | |
9 | ||
10 | cd /usr/games/ching.d | |
473fb73d PK |
11 | case $1 in |
12 | [6-9]*) H=$1;shift;; | |
13 | esac | |
9092f96a KB |
14 | if test $H; then |
15 | ./phx $H | nroff $* macros - | ${PAGER-more} | |
16 | else | |
17 | ./cno > "/tmp/#$$" | |
798963c9 | 18 | echo " " |
9092f96a | 19 | ./phx < "/tmp/#$$" | nroff $* macros - | ${PAGER-more} |
798963c9 | 20 | rm "/tmp/#$$" |
473fb73d | 21 | fi |