pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/bootstrap bootstrap: use $* instead of $@ where approp...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1c853c5ad91d
branches:  trunk
changeset: 423670:1c853c5ad91d
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Feb 23 18:32:46 2020 +0000

description:
bootstrap: use $* instead of $@ where appropriate

This runs the echo command with fewer arguments (1 in most cases).

The observable behavior is still the same, except for directory names
containing spaces, which are not supported anyway.

diffstat:

 bootstrap/bootstrap |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 138961633d71 -r 1c853c5ad91d bootstrap/bootstrap
--- a/bootstrap/bootstrap       Sun Feb 23 18:26:59 2020 +0000
+++ b/bootstrap/bootstrap       Sun Feb 23 18:32:46 2020 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: bootstrap,v 1.273 2019/12/05 22:19:56 sevan Exp $
+# $NetBSD: bootstrap,v 1.274 2020/02/23 18:32:46 rillig Exp $
 #
 # Copyright (c) 2001-2011 Alistair Crooks <agc%NetBSD.org@localhost>
 # All rights reserved.
@@ -123,13 +123,13 @@
 
 die()
 {
-       echo >&2 "$@"
+       echo >&2 "$*"
        exit 1
 }
 
 echo_msg()
 {
-       echo "===> $@"
+       echo "===> $*"
 }
 
 # see if we're using gcc.  If so, set $compiler_is_gnu to '1'.
@@ -293,7 +293,7 @@
 # run a command, abort if it fails
 run_cmd()
 {
-       echo_msg "running: $@"
+       echo_msg "running: $*"
        eval "$@"
        ret=$?
         if [ $ret -ne 0 ]; then
@@ -306,7 +306,7 @@
 # install-sh wrapper instead.
 mkdir_p()
 {
-       for dir in $@; do
+       for dir in "$@"; do
                run_cmd "$install_sh -d -o $user -g $group $dir"
        done
 }
@@ -424,7 +424,7 @@
 fi
 
 build_start=`date`
-echo_msg "bootstrap command: $0 $@"
+echo_msg "bootstrap command: $0 $*"
 echo_msg "bootstrap started: $build_start"
 
 # ensure system locations are empty; we will set them later when we know



Home | Main Index | Thread Index | Old Index