[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] bash variable substitution
From: |
Jeff Forcier |
Subject: |
Re: [Fab-user] bash variable substitution |
Date: |
Fri, 12 Jun 2009 09:39:01 -0400 |
Hi Vincent,
As far as I know that should still work correctly; it's possible
you're seeing a bug that was fixed post-0.9a3, where there was a
chance of output simply being dropped and not displayed. If you're
able, I suggest grabbing the latest version of the code from Github or
git.fabfile.org, in which the issue has been fixed.
Either way, I'll try to test out your below snippet with the latest
code sometime soon, in case there is another bug at work here :)
Best,
Jeff
On Fri, Jun 12, 2009 at 3:49 AM, Vincent Fretin<address@hidden> wrote:
> Hi,
>
> bash variable substitution worked in Fabric 0.1. With Fabric 0.9a3, it
> doen't work anymore
>
> def echo():
> run("VAR='myvar'; echo $VAR")
>
> returns a blank line instead of myvar:
> [host] run: VAR='myvar'; echo $VAR
> Password for address@hidden:
>
> Done.
>
> Using bash variable was the only way I could find Fabric 0.1 to do the
> things I wanted.
> In fabric 0.9a3, I think I can find another way, but I have to adapt
> all my scripts.
>
> Regards
> --
> Vincent Fretin
>
>
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>