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

Control characters and quotes in strings are not escaped when printed #1257

Closed
vkleen opened this issue Apr 18, 2023 · 0 comments · Fixed by #1262
Closed

Control characters and quotes in strings are not escaped when printed #1257

vkleen opened this issue Apr 18, 2023 · 0 comments · Fixed by #1262

Comments

@vkleen
Copy link
Contributor

vkleen commented Apr 18, 2023

Nickel doens't escape quotes in strings output from the interpreter:

nickel> "a\"bcd\"d"
"a"bcd"d"

Other special characters are also not escaped, leading to this confusing output:

nickel> "a\r"
"a

The interpreter should escape control characters and quotes when displaying a string value.

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

Successfully merging a pull request may close this issue.

2 participants