-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Chruby exec dash #303
base: master
Are you sure you want to change the base?
Chruby exec dash #303
Conversation
What's the purpose of these changes? I assume one can still execute the sub-command under dash, so long as chruby exports |
chruby-exec fails under dash because dash fails in sourcing chruby.sh. Here is the output with a
|
Ah I see. The purpose of running chruby within |
In my use case, the chruby-exec is fired off as a system call from within a ruby script (god) which uses /bin/sh. I don't have any specific user configuration and I don't want to error out. My thinking was that in a case where chruby-exec was run under dash, it would just use a shell instead that works (bash or zsh). |
What is the default shell of the user that runs this script? |
if chruby-exec is executed and SHELL is somehow equal to dash, use bash or zsh instead.