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

Remove subshells and external commands (= sed) #17

Closed
d630 opened this issue Oct 24, 2015 · 3 comments
Closed

Remove subshells and external commands (= sed) #17

d630 opened this issue Oct 24, 2015 · 3 comments

Comments

@d630
Copy link
Contributor

d630 commented Oct 24, 2015

Hi,

I have opened four pull requests. Don't know, whether they are compatible with Bash on BSD
#13, #14, #15, #16

@rcaloras
Copy link
Owner

Hey @d630!

Thanks for the contributions, I'll give them a look over the next day and pull them in. What would you say are the major benefits of removing the subshells and sed? Simplicity, portability, speed?

Appreciate it 👍

@d630
Copy link
Contributor Author

d630 commented Oct 27, 2015

Hey!

It is unnecessary to use sed, because bash can do the job itself (and in the end even faster). Command substitutions are only necessary, if we do need the output of a command. But in #15 and #16 it is sufficient to work with exit/return status. See also SubShell.

So, the major benefits are simplicity and speed

rcaloras added a commit that referenced this issue Nov 1, 2015
@rcaloras
Copy link
Owner

rcaloras commented Nov 3, 2015

Thank you for the contributions @d630! Much appreciated. 👍

Would love your feedback or input on my project Bashhub which uses bash-preexec if you're interested.

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

No branches or pull requests

2 participants