fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] bash variable substitution


From: Vincent Fretin
Subject: [Fab-user] bash variable substitution
Date: Fri, 12 Jun 2009 09:49:48 +0200

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]