Skip to content

Conversation

@i7an
Copy link
Contributor

@i7an i7an commented Dec 3, 2025

Re-created #526.

Variables with parentheses are not handled correctly in commands:

FOO='passwo(rd'
BAR=$(echo '$FOO')

Result:

expected: {"BAR"=>"passwo(rd",           "FOO"=>"passwo(rd"}
     got: {"BAR"=>"$(echo 'passwo(rd')", "FOO"=>"passwo(rd"}

The solution I suggest is to parse commands first and expand variables before executing commands.

@i7an i7an changed the title Handle parentheses Handle parentheses in variables in commands Dec 3, 2025
* main:
  Fix lint error
  Remove sponsor
@bkeepers bkeepers merged commit 209dca4 into bkeepers:main Dec 3, 2025
11 checks passed
@bkeepers
Copy link
Owner

bkeepers commented Dec 3, 2025

Thanks @i7an. Sorry for the delay on your previous PR.

I'll get this released shortly.

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