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

simple_expansion at incorrectly low precedence inside concatenation #180

Open
blumbra63 opened this issue Jun 23, 2023 · 1 comment
Open

Comments

@blumbra63
Copy link

Hi,

I noticed this issue in one of my bash scripts. Here is a minimal example:
image

I believe the bottom highlighting should match the top highlighting. Rather than grouping the $ before the second ITEM as part of the concatenation, it should be used as part of a simple_expansion for the ITEM variable, rather than considering ITEM/a/b a word

@blumbra63 blumbra63 changed the title simple_expansion incorrectly at lower precedence than word inside concatenation simple_expansion at incorrectly low precedence inside concatenation Jun 23, 2023
@ahlinc
Copy link
Contributor

ahlinc commented Aug 28, 2023

var="$ITEM/word-$ITEM/a/b"
var=$ITEM/word-$ITEM/a/b

image

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

2 participants