Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/gzip fferentiate zegrep and zfgrep by their basename...



details:   https://anonhg.NetBSD.org/src/rev/23592f2a45fa
branches:  trunk
changeset: 788863:23592f2a45fa
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Jul 25 12:25:23 2013 +0000

description:
fferentiate zegrep and zfgrep by their basename only, so they can be
invoked with a pathname (ie, /usr/bin/z{e,f}grep).

OK wiz@

diffstat:

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

diffs (20 lines):

diff -r a7378eb73a65 -r 23592f2a45fa usr.bin/gzip/zgrep
--- a/usr.bin/gzip/zgrep        Thu Jul 25 08:40:30 2013 +0000
+++ b/usr.bin/gzip/zgrep        Thu Jul 25 12:25:23 2013 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: zgrep,v 1.7 2008/05/08 15:35:23 wiz Exp $
+# $NetBSD: zgrep,v 1.8 2013/07/25 12:25:23 pgoyette Exp $
 #
 # Copyright (c) 2003 Thomas Klausner.
 #
@@ -33,7 +33,7 @@
 hyphen=0
 silent=0
 
-prg=$0
+prg=$(basename $0)
 
 # handle being called 'zegrep' or 'zfgrep'
 case ${prg} in



Home | Main Index | Thread Index | Old Index