[Top][All Lists]

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

Re: [Fab-user] Bug in multiline append

From: Jorge Vargas
Subject: Re: [Fab-user] Bug in multiline append
Date: Thu, 21 May 2009 22:56:30 -0400

On Thu, May 21, 2009 at 10:10 PM, Jeff Forcier <address@hidden> wrote:
> 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?
that won't make it an atomic call. What if one one line works?

> 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).
rly? I ran the command on the shell and it gave me the wrong output,
maybe there is some escaping issue?

> -Jeff
> 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]