reinplace question

Rainer Müller raimue at macports.org
Fri Mar 20 10:34:48 PDT 2009


Rainer Müller wrote:
> Rainer Müller wrote:
> 
>> You have to quote the replace pattern, otherwise &|g is interpreted as a
>> filename.
>>
>>   reinplace "s|psppire|psppire &|g" ...
> 
> And please note that & does not do here what it usually does with sed.
> It will not be replaced with the matched pattern. But this just as a
> side-note.

Gnah, sorry, ignore and discard this reply above. I meant to write a
reply to my other mail.

reinplace uses standard sed as available on your system and & works here
as usual. So for a literal & you have to escape it.

Rainer


More information about the macports-dev mailing list