We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{"foo": "ba'r"}
gives error: zsh:1: unmatched "
zsh:1: unmatched "
This works fine on the command line:
~ » jet -i json -k {"foo": "ba'r"} {:foo "ba'r"}
But echoing and piping fails: echo '{"foo": "b'ar"}' | jet -i json -o edn
echo '{"foo": "b'ar"}' | jet -i json -o edn
since the single quote ends the string in bash.
Something like this works though: echo '{"foo": "b'\''ar"}' | jet -i json -o edn
echo '{"foo": "b'\''ar"}' | jet -i json -o edn
where the single quote is replaced with '\'' (close string, escaped single quote, open string)
'\''
The text was updated successfully, but these errors were encountered:
thanks for the report, I think escaping it liked you mentioned is probably the way to go here
Sorry, something went wrong.
26fa2a8
Fixed on 1.1.1
No branches or pull requests
{"foo": "ba'r"}
gives error:
zsh:1: unmatched "
This works fine on the command line:
But echoing and piping fails:
echo '{"foo": "b'ar"}' | jet -i json -o edn
since the single quote ends the string in bash.
Something like this works though:
echo '{"foo": "b'\''ar"}' | jet -i json -o edn
where the single quote is replaced with
'\''
(close string, escaped single quote, open string)The text was updated successfully, but these errors were encountered: