Source-Changes-HG archive

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

[src/trunk]: src Replace a couple uses of '$@' with '$*'



details:   https://anonhg.NetBSD.org/src/rev/12f0832cfa27
branches:  trunk
changeset: 757310:12f0832cfa27
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Tue Aug 24 20:52:31 2010 +0000

description:
Replace a couple uses of '$@' with '$*'
In statusmsg2() make the msg variable local.

More thanks to Robert Elz.

diffstat:

 build.sh |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (46 lines):

diff -r 171261e7fe54 -r 12f0832cfa27 build.sh
--- a/build.sh  Tue Aug 24 15:28:22 2010 +0000
+++ b/build.sh  Tue Aug 24 20:52:31 2010 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/env sh
-#      $NetBSD: build.sh,v 1.239 2010/08/24 15:28:22 pgoyette Exp $
+#      $NetBSD: build.sh,v 1.240 2010/08/24 20:52:31 pgoyette Exp $
 #
 # Copyright (c) 2001-2009 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -65,6 +65,8 @@
 
 statusmsg2()
 {
+       local msg
+
        msg="${1}"
        shift
        case "${msg}" in
@@ -81,7 +83,7 @@
        ?????????????????)      msg="${msg}    ";;
        ????????????????)       msg="${msg}     ";;
        esac
-       statusmsg "${msg}$@"
+       statusmsg "${msg}$*"
 }
 
 warning()
@@ -1382,7 +1384,7 @@
        eval cat <<EOF ${makewrapout}
 #! ${HOST_SH}
 # Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from:  \$NetBSD: build.sh,v 1.239 2010/08/24 15:28:22 pgoyette Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.240 2010/08/24 20:52:31 pgoyette Exp $
 # with these arguments: ${_args}
 #
 
@@ -1655,7 +1657,7 @@
        sanitycheck
 
        build_start=$(date)
-       statusmsg2 "${progname} command:" "$0 $@"
+       statusmsg2 "${progname} command:" "$0 $*"
        statusmsg2 "${progname} started:" "${build_start}"
        statusmsg2 "NetBSD version:"   "${DISTRIBVER}"
        statusmsg2 "MACHINE:"          "${MACHINE}"



Home | Main Index | Thread Index | Old Index