summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pbfields2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pbfields b/bin/pbfields
index c5f815e..9102bca 100755
--- a/bin/pbfields
+++ b/bin/pbfields
@@ -118,7 +118,7 @@ function bashquote (val)
{
if(val ~ /[$'"`]/){
- gsub(/[$"`]/, "\\\\&", $2)
+ gsub(/[$"`]/, "\\\\&", val)
return sprintf("\"%s\"", val)
}
if(val ~ /[ <>]/) return sprintf("'%s'", val)