From e2563a97262693ba6d6a1c2795ab9453b063251e Mon Sep 17 00:00:00 2001 From: Justin Davis Date: Fri, 25 May 2012 14:46:54 -0400 Subject: Quote $(...) command expansion properly in pbfields. --- bin/pbfields | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3-24-g4f1b