Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Change some trimming functions to subshells#31

Open
augustobmoura wants to merge 1 commit intodylanaraps:masterfrom
augustobmoura:feature/subshells-for-overriding
Open

Change some trimming functions to subshells#31
augustobmoura wants to merge 1 commit intodylanaraps:masterfrom
augustobmoura:feature/subshells-for-overriding

Conversation

@augustobmoura
Copy link
Copy Markdown

We can have the situation that shell options are already unset, in that case we actually change them to setted. The correct way of preventing shell options overriding is using a subshell, because all the functions that use set are only printing the result the subshell works like a charm.

Also we can remove the resetting of options and env vars at the end of the functions

to prevent options overriding
@augustobmoura
Copy link
Copy Markdown
Author

Kinda solves #7 too

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant