Skip to content

Commit

Permalink
Merge pull request #10 from BolunThompson/bash
Browse files Browse the repository at this point in the history
Minor bash expansion bug fix
  • Loading branch information
BolunThompson authored Jan 23, 2025
2 parents 08f52af + 5611608 commit 6e53105
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "sh-expand"
version = "0.2.0"
version = "0.2.1"
authors = [
{ name="Michael Greenberg", email="[email protected]" },
{ name="Konstantinos Kallas", email="[email protected]" },
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
long_description = (Path(__file__).parent / "README.md").read_text()

setup(name='sh-expand',
version='0.2.0',
version='0.2.1',
packages=['sh_expand'],
## Necessary for the markdown to be properly rendered
long_description=long_description,
Expand Down
2 changes: 0 additions & 2 deletions sh_expand/bash_expand.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ def should_expand_var(word: list[CArgChar]) -> bool:
raise ImpureExpansion("Potential dangerous tilde expansion:", carg)
if pair in {"<(", ">(", "$("}:
raise ImpureExpansion("Potential process substitution", carg)
if char == "(":
raise ImpureExpansion("Potential array", carg)
if char == "$":
seen_dollar_sign = True
if char in need_to_expand_chars:
Expand Down

0 comments on commit 6e53105

Please sign in to comment.