Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/gzip fix == compatibility problem
details: https://anonhg.NetBSD.org/src/rev/d8365427e7ed
branches: trunk
changeset: 325106:d8365427e7ed
user: pettai <pettai%NetBSD.org@localhost>
date: Fri Dec 06 13:33:15 2013 +0000
description:
fix == compatibility problem
diffstat:
usr.bin/gzip/zmore | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 5d456e0e7829 -r d8365427e7ed usr.bin/gzip/zmore
--- a/usr.bin/gzip/zmore Fri Dec 06 11:23:47 2013 +0000
+++ b/usr.bin/gzip/zmore Fri Dec 06 13:33:15 2013 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: zmore,v 1.4 2013/11/12 21:58:37 pettai Exp $
+# $NetBSD: zmore,v 1.5 2013/12/06 13:33:15 pettai Exp $
#
# $OpenBSD: zmore,v 1.6 2008/08/20 09:22:02 mpf Exp $
#
@@ -41,7 +41,7 @@
esac
done
-if [ `basename $0` == "zless" ] ; then
+if [ `basename $0` = "zless" ] ; then
pager=${PAGER-less}
else
pager=${PAGER-more}
@@ -49,13 +49,13 @@
# No files means read from stdin
if [ $# -eq 0 ]; then
- gzip -cdfq 2>&1 | ${PAGER-more} $flags
+ gzip -cdfq 2>&1 | $pager $flags
exit 0
fi
oterm=`stty -g 2>/dev/null`
while test $# -ne 0; do
- gzip -cdfq "$1" 2>&1 | ${PAGER-more} $flags
+ gzip -cdfq "$1" 2>&1 | $pager $flags
prev="$1"
shift
if tty -s && test -n "$oterm" -a $# -gt 0; then
Home |
Main Index |
Thread Index |
Old Index