pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/checksum Add a few more double-quotes around eval'e...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d2f47526f0a1
branches:  trunk
changeset: 516069:d2f47526f0a1
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Jul 13 15:48:07 2006 +0000

description:
Add a few more double-quotes around eval'ed variables.

diffstat:

 mk/checksum/checksum |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (42 lines):

diff -r 56b9920332ac -r d2f47526f0a1 mk/checksum/checksum
--- a/mk/checksum/checksum      Thu Jul 13 15:27:57 2006 +0000
+++ b/mk/checksum/checksum      Thu Jul 13 15:48:07 2006 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: checksum,v 1.1 2006/07/13 14:02:34 jlam Exp $
+# $NetBSD: checksum,v 1.2 2006/07/13 15:48:07 jlam Exp $
 #
 # Copyright (c) 2006 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -128,14 +128,14 @@
                ${TEST} "$d_alg" = "$algorithm" || continue
        fi
 
-       eval "tmp=\$_alg_${d_alg}"
+       eval "tmp=\"\$_alg_${d_alg}\""
        ${TEST} -n "$tmp" || eval "_alg_${d_alg}=\"$@\""
 
        d_file="${d_file#(}"; d_file="${d_file%)}"
        for file in "$@"; do
                ${TEST} "$d_file" = "$file" || continue
                
-               eval "tmp=\$_alg_${d_alg}"
+               eval "tmp=\"\$_alg_${d_alg}\""
                case "$tmp" in
                "$file"|"$file "*)      tmp_pre= ;;
                *" $file")              tmp_pre="${tmp%% $file}" ;;
@@ -163,11 +163,11 @@
                break
        done
 
-       eval "tmp=\$_alg_${d_alg}"
+       eval "tmp=\"\$_alg_${d_alg}\""
        ${TEST} -n "$tmp" || eval "_alg_${d_alg}=DONE"
   done
   if ${TEST} -n "$algorithm"; then
-       eval "tmp=\$_alg_${algorithm}"
+       eval "tmp=\"\$_alg_${algorithm}\""
        ${TEST} -n "$tmp" || tmp="$@"
        if ${TEST} "$tmp" != DONE; then
                for file in $tmp; do



Home | Main Index | Thread Index | Old Index