summaryrefslogtreecommitdiff
path: root/mk/checksum
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-07-13 16:11:39 +0000
committerjlam <jlam@pkgsrc.org>2006-07-13 16:11:39 +0000
commit34b72a488d41cb881ce58b4213d927e2be5fc545 (patch)
tree02c891e05a74b1b497283524a2f02c988e6786ab /mk/checksum
parent0aa9d5c11cde4b16580119bc1d7dfb069e8396f8 (diff)
downloadpkgsrc-34b72a488d41cb881ce58b4213d927e2be5fc545.tar.gz
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 (limited to 'mk/checksum')
-rwxr-xr-xmk/checksum/checksum4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/checksum/checksum b/mk/checksum/checksum
index 2e407d2c8e4..a7e7a4a1d8e 100755
--- a/mk/checksum/checksum
+++ b/mk/checksum/checksum
@@ -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 @@ ${CAT} $distinfo |
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