Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/usr.bin/gzip Pullup the following revisions, requested by...



details:   https://anonhg.NetBSD.org/src/rev/993369179be9
branches:  netbsd-6
changeset: 776508:993369179be9
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Mon Dec 09 20:24:21 2013 +0000

description:
Pullup the following revisions, requested by pettai in ticket #982:
        usr.bin/gzip/zmore: revision 1.5
fix == compatibility problem

diffstat:

 usr.bin/gzip/zmore |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 37402c4de878 -r 993369179be9 usr.bin/gzip/zmore
--- a/usr.bin/gzip/zmore        Thu Dec 05 18:44:26 2013 +0000
+++ b/usr.bin/gzip/zmore        Mon Dec 09 20:24:21 2013 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-# $NetBSD: zmore,v 1.3.52.1 2013/12/05 18:44:26 bouyer Exp $
+# $NetBSD: zmore,v 1.3.52.2 2013/12/09 20:24:21 bouyer 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