Skip to content
New issue

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

Issues with macOS Catalina / Z shell #90

Open
mitya opened this issue Nov 18, 2019 · 0 comments
Open

Issues with macOS Catalina / Z shell #90

mitya opened this issue Nov 18, 2019 · 0 comments

Comments

@mitya
Copy link

mitya commented Nov 18, 2019

The default shell on the latest macOS is Z shell and it seem to have issues with Resty:

The problem is that when running under zsh the special characters in the JSON responses are printed as is, so, for example, the new line character is actually printed to the terminal instead of being outputted like "first line\nsecond line". JSON spec requires all control characters to be escaped, so piping resty output to a JSON parser is impossible now. E.g. GET /some/api | jq will fail.

Given that curl works fine with Z, the issue is probably on the Resty side.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant