summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2012-05-15 17:35:33 +0200
committerJustin Davis <jrcd83@gmail.com>2012-05-15 17:35:33 +0200
commit2e80eb2b8e6de3382ce2203326f70dcc6169a0db (patch)
tree54bf07ea4485464c0b42d4b508d134f4e2063f73 /bin
parenta47944ceac00c4ca3247df0ef9906f572afe1900 (diff)
downloadgenpkg-2e80eb2b8e6de3382ce2203326f70dcc6169a0db.tar.gz
genpkg-2e80eb2b8e6de3382ce2203326f70dcc6169a0db.tar.xz
Quote fields with <> chars (again).
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pbfields2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pbfields b/bin/pbfields
index ca65c2a..c5f815e 100755
--- a/bin/pbfields
+++ b/bin/pbfields
@@ -121,6 +121,6 @@ function bashquote (val)
gsub(/[$"`]/, "\\\\&", $2)
return sprintf("\"%s\"", val)
}
- if(val ~ / /) return sprintf("'%s'", val)
+ if(val ~ /[ <>]/) return sprintf("'%s'", val)
return val
}