Source-Changes-HG archive

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

[src/trunk]: src Quote the $msg variable to ensure that leading/trailing spac...



details:   https://anonhg.NetBSD.org/src/rev/171261e7fe54
branches:  trunk
changeset: 757309:171261e7fe54
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Tue Aug 24 15:28:22 2010 +0000

description:
Quote the $msg variable to ensure that leading/trailing spaces get counted.

Thanks to Robert Elz.

diffstat:

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

diffs (35 lines):

diff -r ced701abd7d0 -r 171261e7fe54 build.sh
--- a/build.sh  Tue Aug 24 15:03:34 2010 +0000
+++ b/build.sh  Tue Aug 24 15:28:22 2010 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/env sh
-#      $NetBSD: build.sh,v 1.238 2010/08/24 13:35:32 pgoyette Exp $
+#      $NetBSD: build.sh,v 1.239 2010/08/24 15:28:22 pgoyette Exp $
 #
 # Copyright (c) 2001-2009 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -67,13 +67,13 @@
 {
        msg="${1}"
        shift
-       case ${msg} in
+       case "${msg}" in
        ????????????????*)      ;;
        ??????????*)            msg="${msg}      ";;
        ?????*)                 msg="${msg}           ";;
        *)                      msg="${msg}                ";;
        esac
-       case ${msg} in
+       case "${msg}" in
        ?????????????????????*) ;;
        ????????????????????)   msg="${msg} ";;
        ???????????????????)    msg="${msg}  ";;
@@ -1382,7 +1382,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.238 2010/08/24 13:35:32 pgoyette Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.239 2010/08/24 15:28:22 pgoyette Exp $
 # with these arguments: ${_args}
 #
 



Home | Main Index | Thread Index | Old Index