diff options
author | jlam <jlam> | 2006-07-13 16:11:39 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-07-13 16:11:39 +0000 |
commit | 4e5b41a92bdeb1c518c6cbaa52e004185a42ac1a (patch) | |
tree | 02c891e05a74b1b497283524a2f02c988e6786ab /mk | |
parent | d819e04c1338e1aad9fb1d66b9e68730811ff122 (diff) | |
download | pkgsrc-4e5b41a92bdeb1c518c6cbaa52e004185a42ac1a.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')
-rwxr-xr-x | mk/checksum/checksum | 4 |
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 |