Add check for args which are already quotes
@@ -12,6 +12,8 @@ def quote_arg(s):
return '""'
if _find_unsafe(s) is None:
return s
+ if s.startswith('"') and s.endswith('"'):
+ return s
# If we found an unsafe character, escape with double quotes.
return '"' + s + '"'
