[Top][All Lists]

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

Re: [Fab-user] Bug in multiline append

From: Jeff Forcier
Subject: Re: [Fab-user] Bug in multiline append
Date: Thu, 21 May 2009 22:10:41 -0400

Yea, I've never used append() on more than one line at a time. Could
easily upgrade it to take a list of lines which would result in
several internal calls; would that work for you?

Given that it's simply passing through to shell mechanisms, true
multiline could get tricky (though honestly I'm not sure why it
doesn't work right off, I've done that in an actual shell before
without problems).


On Thu, May 21, 2009 at 9:48 PM, Jorge Vargas <address@hidden> wrote:
> Hi,
> It seems that the following code fails to run on the server.
> def test_append():
>    env.home = path('/home/mae')
>    append('''mae was here
>    multiline fails
>    ''', env.home / 'supervisord.conf')
> This is the debug output
>  run: /bin/bash -l -c "egrep \"^mae was here
> sdds
>    \" \"/home/mae/supervisord.conf\""
> and the whole file gets printed to out
> work around use several call to append :)
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user

reply via email to

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