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

refactor: unset variables with graceful degradation (#53) #56

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

LucasLarson
Copy link
Owner

for shells that correctly interpret unset variable, it is wasteful to first clear the variable with variable=''; to fix #53, that behavior is now relegated to only situations and interpreters where unset fails.

for shells that correctly interpret `unset variable`, it is wasteful to
first clear the variable; that behavior is now relegated to only
environments and interpreters where `unset` has failed to fix #53

Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
@LucasLarson LucasLarson merged commit 6d7456f into main Feb 8, 2024
7 checks passed
@LucasLarson LucasLarson deleted the unset branch February 8, 2024 23:18
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.

clear variables with fewer steps
1 participant