version 1.3, 2004/03/29 09:59:42 |
version 1.3.34.1, 2013/12/05 18:46:15 |
|
|
# |
# |
# $NetBSD$ |
# $NetBSD$ |
# |
# |
# $OpenBSD: zmore,v 1.4 2003/07/29 07:42:45 otto Exp $ |
# $OpenBSD: zmore,v 1.6 2008/08/20 09:22:02 mpf Exp $ |
# |
# |
# Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com> |
# Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com> |
# |
# |
Line 41 while test $# -ne 0; do |
|
Line 41 while test $# -ne 0; do |
|
esac |
esac |
done |
done |
|
|
|
if [ `basename $0` == "zless" ] ; then |
|
pager=${PAGER-less} |
|
else |
|
pager=${PAGER-more} |
|
fi |
|
|
# No files means read from stdin |
# No files means read from stdin |
if [ $# -eq 0 ]; then |
if [ $# -eq 0 ]; then |
gzip -cdfq 2>&1 | ${PAGER-more} $flags |
gzip -cdfq 2>&1 | ${PAGER-more} $flags |