Source-Changes-HG archive

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

[src/trunk]: src/lib Use $0



details:   https://anonhg.NetBSD.org/src/rev/b433c0148f0b
branches:  trunk
changeset: 784998:b433c0148f0b
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 17 01:26:47 2013 +0000

description:
Use $0

diffstat:

 lib/checkver |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 2189b23b0cc1 -r b433c0148f0b lib/checkver
--- a/lib/checkver      Sun Feb 17 01:26:19 2013 +0000
+++ b/lib/checkver      Sun Feb 17 01:26:47 2013 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: checkver,v 1.14 2013/02/17 01:20:57 christos Exp $
+#      $NetBSD: checkver,v 1.15 2013/02/17 01:26:47 christos Exp $
 #
 # Copyright (c) 1998 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -67,7 +67,7 @@
 #
 
 TMP=/tmp/checkver.$$
-PROG="$(basename "$PROG")"
+PROG="$(basename "$0")"
 # Can't trap 11 (SEGV) in the Real Bourne Shell, since it uses it for
 # internal malloc!
 trap "exit 2" 1 2 3 4 5 6 7 8 10 12 13 14 15



Home | Main Index | Thread Index | Old Index