-
Notifications
You must be signed in to change notification settings - Fork 683
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
configure command execution shells to sh/bash/zsh #659
Conversation
1b7342b
to
0631779
Compare
(Moved from #645 ) This implementation supports a few shells and mainly works via a wrapper; Easy to extend if we wanted to add shell-paths as suggested by @srenatus (though I would separate shell-type and shell-path in that case ;) ):
resourceAn alternative idea to all this would be to add a
Though i think it gets us into the domain of writing scripts, not just commands... wrapperAnother idea is to initialize the shell once:
|
@chris-rock ping to our discussion this morning ^^ |
I would like to harmonize usability with our
I am not sure if we should move so many unix/linux handling into cmd implementation.I would like to keep the |
Apparently |
draft-level nitpicking ;)
|
@chris-rock 👍 on that. In this case, bash = ->(x) { command("bash -c "+Shellwords.escape(x)) } I really like your idea of moving that logic outside of the |
@arlimus We could use |
Wouldn't that limit us? I.e. what if there are non-unix systems which we just wanted to wrap?
|
Oh yeah, the wrapper logic should be in |
Run against docker container:
Now like this:
Alternative idea for #645
All kudos to @alexpop for raising + original implementation + @srenatus for his input.