4 PATH="BINDIR:$PATH"; export PATH
5 if test "`echo -n a`" = "-n a"; then
6 # looks like a SysV system:
11 oldtty=`stty -g 2>/dev/null`
12 if stty -cbreak 2>/dev/null; then
13 cb='cbreak'; ncb='-cbreak'
15 # 'stty min 1' resets eof to ^a on both SunOS and SysV!
16 cb='min 1 -icanon'; ncb='icanon eof ^d'
18 if test $? -eq 0 -a -n "$oldtty"; then
19 trap 'stty $oldtty 2>/dev/null; exit' 0 2 3 5 10 13 15
21 trap 'stty $ncb echo 2>/dev/null; exit' 0 2 3 5 10 13 15
26 echo usage: zmore files...
28 gzip -cdfq | eval ${PAGER-more}
34 if test $FIRST -eq 0; then
35 echo $n1 "--More--(Next file: $FILE)$n2"
36 stty $cb -echo 2>/dev/null
37 ANS=`dd bs=1 count=1 2>/dev/null`
38 stty $ncb echo 2>/dev/null
40 if test "$ANS" = 'e' -o "$ANS" = 'q'; then
44 if test "$ANS" != 's'; then
45 echo "------> $FILE <------"
46 gzip -cdfq "$FILE" | eval ${PAGER-more}