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

Will backslash be removed as a quote character? #110

Open
limjcst opened this issue May 9, 2019 · 0 comments
Open

Will backslash be removed as a quote character? #110

limjcst opened this issue May 9, 2019 · 0 comments

Comments

@limjcst
Copy link

limjcst commented May 9, 2019

Below is a test case, which is thought good

Its corresponding expected CST, inside WordDoubleQuoted, is

where \\\", printed as \", is exactly the content of echo "\"".
However, in bash(version 4.3.48), the output of echo "\"" is just ".

As mentioned in IEEE Std 1003.1™ - 2017, Vol. 3: Shell and Utilities, Issue 7, (Is it out of date?)

2.6.7 Quote Removal
    The quote characters (<backslash>, single-quote, and double-quote) that were present in the
    original word shall be removed unless they have themselves been quoted.

Is <backslash> removal under plan, or left to the conversion stage from concrete syntax tree to abstract syntax tree?

BTW, thanks for your brilliant work!

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

No branches or pull requests

1 participant