-
Notifications
You must be signed in to change notification settings - Fork 66
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
Newline isn't escaped when backslash is not preceded by whitespace #100
Comments
verhovsky
changed the title
Newline when backslash is not preceded by whitespace
Newline isn't escaped when backslash is not preceded by whitespace
Sep 13, 2021
ahlinc
added a commit
to ahlinc/tree-sitter-bash
that referenced
this issue
Sep 22, 2021
maxbrunsfeld
pushed a commit
that referenced
this issue
Sep 22, 2021
@maxbrunsfeld if you find a chance to do it, can I get a release please? |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
echo a \ b
parses correctly, however removing the space before the
\
echo a\ b
causes it to get parsed as a
concatenation
:Output:
You can see that this doesn't happen on my
GNU bash, version 5.1.8(1)-release (aarch64-apple-darwin20.4.0)
:there are multiple spaces before "
b
", but because bash parses them as two separate arguments,echo
prints them separated by only 1 space, as expected.The text was updated successfully, but these errors were encountered: