diff options
author | jlam <jlam@pkgsrc.org> | 2006-05-02 14:32:35 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-05-02 14:32:35 +0000 |
commit | 1c8d9b58f14f4ed5de98de4877f62ad1326021e1 (patch) | |
tree | b070e1012d3e80c3dca3a8acaacd397ec48747c6 /mk/plist | |
parent | 7964c926a77cb23f37c7e45a1800b444bf4e07c2 (diff) | |
download | pkgsrc-1c8d9b58f14f4ed5de98de4877f62ad1326021e1.tar.gz |
Use brackets "[]" to quote characters instead of backslash "\". This
is more bulletproof across different versions of awk. From PR pkg/33410
by Aleksey Cheusov.
Diffstat (limited to 'mk/plist')
-rw-r--r-- | mk/plist/plist-subst.awk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/plist/plist-subst.awk b/mk/plist/plist-subst.awk index abc4d339e3b..403096cf388 100644 --- a/mk/plist/plist-subst.awk +++ b/mk/plist/plist-subst.awk @@ -1,4 +1,4 @@ -# $NetBSD: plist-subst.awk,v 1.2 2006/01/22 16:54:13 jlam Exp $ +# $NetBSD: plist-subst.awk,v 1.3 2006/05/02 14:32:35 jlam Exp $ # # Copyright (c) 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -49,7 +49,7 @@ BEGIN { value = ENVIRON[vars[i]] var = vars[i] sub("^PLIST_", "", var) - regexp = "\\${" var "}" + regexp = "[$][{]" var "[}]" substitute[regexp] = value } } |