pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/checksum Backslash escape the parentheses so the sh...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/78362f1b1b34
branches:  trunk
changeset: 516071:78362f1b1b34
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Jul 13 16:11:39 2006 +0000

description:
Backslash escape the parentheses so the shell doesn't think it should
do shell expansion.  Fixes a bug picked up by /bin/ksh and by /bin/sh
in -current.

diffstat:

 mk/checksum/checksum |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 23635a996232 -r 78362f1b1b34 mk/checksum/checksum
--- a/mk/checksum/checksum      Thu Jul 13 16:02:09 2006 +0000
+++ b/mk/checksum/checksum      Thu Jul 13 16:11:39 2006 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: checksum,v 1.3 2006/07/13 16:02:09 jlam Exp $
+# $NetBSD: checksum,v 1.4 2006/07/13 16:11:39 jlam Exp $
 #
 # Copyright (c) 2006 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -131,7 +131,7 @@
        eval "tmp=\"\$_alg_${d_alg}\""
        ${TEST} -n "$tmp" || eval "_alg_${d_alg}=\"$@\""
 
-       d_file="${d_file#(}"; d_file="${d_file%)}"
+       d_file="${d_file#\(}"; d_file="${d_file%\)}"
        for file in "$@"; do
                ${TEST} "$d_file" = "$file" || continue
                



Home | Main Index | Thread Index | Old Index