diff options
author | Justin Davis <jrcd83@gmail.com> | 2012-05-25 20:46:54 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2012-05-25 20:46:54 +0200 |
commit | e2563a97262693ba6d6a1c2795ab9453b063251e (patch) | |
tree | 83ed4a67d98e56efe1593b83c44a5873ace5cb39 /bin | |
parent | 4af5fccb7a8d4e31ca8b211773218772f8d547ca (diff) | |
download | genpkg-e2563a97262693ba6d6a1c2795ab9453b063251e.tar.gz genpkg-e2563a97262693ba6d6a1c2795ab9453b063251e.tar.xz |
Quote $(...) command expansion properly in pbfields.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pbfields | 1 |
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) |