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

semantic: type missing prefix #67

Open
r0mainK opened this issue Sep 11, 2019 · 2 comments
Open

semantic: type missing prefix #67

r0mainK opened this issue Sep 11, 2019 · 2 comments
Labels

Comments

@r0mainK
Copy link

r0mainK commented Sep 11, 2019

The type Parameter_expansion_operator_':-' is missing the bash: prefix, unlike Parameter_expansion_operator_'!' or Parameter_expansion_operator_'-',in Semantic mode.

You can see this by parsing export foo=${foo:-bar}.

@r0mainK r0mainK changed the title semantic type missing prefix semantic: type missing prefix Sep 11, 2019
@dennwc
Copy link
Member

dennwc commented Sep 12, 2019

Hmm, this one is interesting. Usually, the namespaces transform stage traverses all the nodes and adds namespaces to any node that doesn't have it already. I wonder why this case is different?

@r0mainK
Copy link
Author

r0mainK commented Sep 23, 2019

@dennwc found 3 more cases: Parameter_expansion_operator_':+', Parameter_expansion_operator_':=' and Parameter_expansion_operator_':?'.

I'm guessing there is some issue related to the parsing of :

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

No branches or pull requests

3 participants