Yes. It's called the `fab_shell` variable, and it is by default
defined like this:
/bin/bash -l -c "%s"
That helps, but I'm still doing something wrong:
set(
fab_hosts = ['svn01'],
)
set(
fab_shell = '/bin/sh -l -c "%s"'
)
def pwd():
"prints cwd"
run("pwd")
fab pwd
Fabric v. 0.0.9, Copyright (C) 2008 Christian Vest Hansen.
Fabric comes with ABSOLUTELY NO WARRANTY; for details type `fab
warranty'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `fab license' for details.
Running pwd...
Logging into the following hosts as dcj:
svn01
[svn01] run: pwd
[svn01] err: /bin/sh: {fab_author:: not found
Error: The run operation failed on svn01.
On Fri, Nov 21, 2008 at 7:01 AM, Don Jackson
<[EMAIL PROTECTED]> wrote:
>
> Doesn't seem to work.
>
> $ cat fabfile
> set(
> fab_hosts = ['svn01'],
> )
>
> def pwd():
> "prints cwd"
> run("pwd")
>
> $ fab pwd
> Fabric v. 0.0.9, Copyright (C) 2008 Christian Vest Hansen.
> Fabric comes with ABSOLUTELY NO WARRANTY; for details type `fab
warranty'.
> This is free software, and you are welcome to redistribute it
> under certain conditions; type `fab license' for details.
>
> Running pwd...
> Logging into the following hosts as dcj:
> svn01
> [svn01] run: pwd
> [svn01] err: ksh: /bin/bash: not found
> Error: The run operation failed on svn01.
>
> Is there a variable I can set that will make fabric use another
shell?
_______________________________________________
Fab-user mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/fab-user