diff --git a/jqjq.jq b/jqjq.jq index 4b96ff1..e0e2cc8 100644 --- a/jqjq.jq +++ b/jqjq.jq @@ -2737,7 +2737,7 @@ def parse_options: def invoke_client_jqjq: # instead of @sh to not always quote (as per quoting rules of ${var@Q}) def sh_escape: - if . == "" or test("[^[A-Za-z0-9%+\\-./:=@_]]") then + if . == "" or test("[^A-Za-z0-9%+\\-./:=@_]") then "'" + gsub("'"; "'\\''") + "'" end; ( . as $args