summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2012-05-25 20:46:54 +0200
committerJustin Davis <jrcd83@gmail.com>2012-05-25 20:46:54 +0200
commite2563a97262693ba6d6a1c2795ab9453b063251e (patch)
tree83ed4a67d98e56efe1593b83c44a5873ace5cb39
parent4af5fccb7a8d4e31ca8b211773218772f8d547ca (diff)
downloadgenpkg-e2563a97262693ba6d6a1c2795ab9453b063251e.tar.gz
genpkg-e2563a97262693ba6d6a1c2795ab9453b063251e.tar.xz
Quote $(...) command expansion properly in pbfields.
-rwxr-xr-xbin/pbfields1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/pbfields b/bin/pbfields
index 2b9b927..662c807 100755
--- a/bin/pbfields
+++ b/bin/pbfields
@@ -123,6 +123,7 @@ function qexpand (v)
{
if(v ~ /[$']/){
gsub(/["`]/, "\\\\&", v)
+ gsub(/[$][(]/, "\\$(", v)
return sprintf("\"%s\"", v)
}else if(v ~ /[ <>`"]/){
return sprintf("'%s'", v)