reinplace question

Bradley Giesbrecht brad at pixilla.com
Fri Mar 20 08:45:20 PDT 2009


On Mar 20, 2009, at 7:21 AM, Jeremy Lavergne wrote:

> If I want to append a space and ampersand at the end of a known  
> line, what's the way to write this in reinplace?
>
> I tried (without success):
>   reinplace s|psppire|psppire &|g
>   reinplace s|psppire|psppire\ &|g
>   reinplace s|psppire|psppire\ \&|g
>
> Any suggestions?

Keep adding backslashes.

This is what I ended up with to escape double quotes. I'm sure someone  
here will show me a better way.

    set CCARGS      [concat ${CCARGS} -DUSE_SASL_AUTH - 
DDEF_SERVER_SASL_TYPE=\\\\\\"dovecot\\\\\\"]


//Brad


More information about the macports-dev mailing list