Skip to content

perf: Replace subshell with POSIX Parameter expansion - #137

Merged
ezrizhu merged 2 commits into
binpash:mainfrom
hyperupcall:hyperupcall-fix
Jan 10, 2024
Merged

ezrizhu merged 2 commits into
binpash:mainfrom
hyperupcall:hyperupcall-fix

Conversation

@hyperupcall

@hyperupcall hyperupcall commented Jan 5, 2024 •

Copy link
Copy Markdown
Contributor

This replaces a subshell that called out to basename with Parameter Expansion specified by POSIX. As a result, the export variable no longer has to be on a separate line (to prevent masking errors).

@ezrizhu
ezrizhu requested a review from mgree January 5, 2024 23:36

@mgree mgree left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

Comment thread try Resolved
@ezrizhu
ezrizhu merged commit 9216d32 into binpash:main Jan 10, 2024
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.

3 participants