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

fix(brace-expansion): ignore only blocks that begins with $ #150

Closed
wants to merge 3 commits into from

Conversation

roggervalf
Copy link
Contributor

this pr upgrades brace-expansion package that has this fix

@roggervalf
Copy link
Contributor Author

Please @isaacs when you get some chance could you review this pr?

@isaacs
Copy link
Owner

isaacs commented Feb 5, 2022

This doesn't seem like correct behavior, though.

$ echo {a,b}\${c,d}\${e,f}
a$c$e a$c$f a$d$e a$d$f b$c$e b$c$f b$d$e b$d$f

Minimatch doesn't do ${} expansion, only {,,} expansion. Ignoring ${} sections seems wrong, no?

@roggervalf
Copy link
Contributor Author

This doesn't seem like correct behavior, though.

$ echo {a,b}\${c,d}\${e,f}
a$c$e a$c$f a$d$e a$d$f b$c$e b$c$f b$d$e b$d$f

Minimatch doesn't do ${} expansion, only {,,} expansion. Ignoring ${} sections seems wrong, no?

@isaacs from your example, I could reproduce it, you are right, it seems this is a bug in brace-expand that do not consider when $ is present and I created a pr to fix it juliangruber/brace-expansion#58

@isaacs
Copy link
Owner

isaacs commented Feb 7, 2022

I don't think that brace-expand should be doing anything with $ at all, escaped or not. juliangruber/brace-expansion#58 (comment)

@isaacs isaacs closed this in 58b72d3 Feb 15, 2022
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

Successfully merging this pull request may close these issues.

2 participants