Skip to content

Commit d934fb6

Browse files
authored
Merge pull request #22 from wader/sh-quote-parens
Quote also if string includes ()
2 parents 7336c71 + ebe70c6 commit d934fb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jqjq.jq

+1-1
Original file line numberDiff line numberDiff line change
@@ -2737,7 +2737,7 @@ def parse_options:
27372737
def invoke_client_jqjq:
27382738
# instead of @sh to not always quote
27392739
def sh_escape:
2740-
if . == "" or test("['\" $\n\\\\]") then
2740+
if . == "" or test("['\" $\n\\\\()]") then
27412741
"'" + gsub("'"; "'\\''") + "'"
27422742
end;
27432743
( . as $args

0 commit comments

Comments
 (0)