Chruby exec dash#303
Chruby exec dash#303grimm26 wants to merge 3 commits intopostmodern:masterfrom grimm26:chruby-exec-dash
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.