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

perf: Replace subshell with POSIX Parameter expansion #137

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

hyperupcall
Copy link
Contributor

@hyperupcall hyperupcall commented Jan 5, 2024

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
Copy link
Contributor

@mgree mgree left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

try Outdated Show resolved Hide resolved
@ezrizhu ezrizhu merged commit 9216d32 into binpash:main Jan 10, 2024
11 checks passed
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