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
env.shell doesn't work properly on FreeBSD #1374
Comments
Is this because FreeBSD's Also not sure what your question means exactly, are you asking why Fabric isn't trying to be more dynamic about which shell it selects? |
I'm reporting that Fabric doesn't work on a stock FreeBSD install, even with For example
The only way Fabric works properly under FreeBSD is if the user's shell is changed with |
Strange; even on Linux distros where Re: If you do |
test_stock: test_noshell append:
test_sh append:
Possibly BSDploy developers have some experience with this. |
OK, some more information:
For me the conclusion is something like while chsh is set to csh everything works really differently, than when it's set to bash. It's also weird that when configured to use bash/sh, neither bash nor sh is anywhere visible in |
What if you do the same kind of thing with "ssh -t" ? e.g. ssh -t Russell On 15 September 2015 at 00:37, Zsolt Ero notifications@github.com wrote:
|
I had similar problems and found a fix: You need to set backslash_quote in csh. This might be a default on some systems and obscuring the problem. See pull request #1483 .Feedback welcome. |
Going to roll this into #1483 too. |
As based on the FAQ, when using Fabric with a FreeBSD host, it needs
env.shell = "/bin/sh -c"
However this doesn't work. Basic
run
commands are ok, butappend
andecho $0
andecho $SHELL
are not.code:
output:
The fix is to manually change the user's shell with chsh to sh or bash:
chsh -s /bin/sh
orchsh -s /usr/local/bin/bash
After this and a reconnect Fabric actually works, with the following output:
I guess the question is that why doesn't env.shell change the shell when it's called on csh.
The text was updated successfully, but these errors were encountered: