<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>That explains why pipe didn't work as well.</div><div><br></div><div>Thanks.<br><br>Sent from my iPhone</div><div><br>On Jul 7, 2014, at 1:59 PM, Brandon Allbery &lt;<a href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jul 7, 2014 at 2:30 PM, Mark Brethen <span dir="ltr">&lt;<a href="mailto:mark.brethen@gmail.com" target="_blank">mark.brethen@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I only need to replace the uncommented line. So I tried<br>
<br>
post-configure {<br>
&nbsp; &nbsp; reinplace {:^#:!s:Inventor/scxml:scxml:g} \<br>
&nbsp; &nbsp; &nbsp; &nbsp; ${worksrcpath}/src/3rdParty/CMakeLists.txt<br>
}<br>
<br>
But this had no effect, when it should work in sed. Am I missing something?<br></blockquote><div><br></div><div>That looks wrong to me; in sed, to use a pattern delimiter other than / *as an address* you need to start it with a backslash so it knows it's a pattern delimiter coming up and not a command without an address. That is,</div>
<div><br></div><div>&nbsp; &nbsp; :foo:p</div><div><br></div><div>is an illegal command, but</div><div><br></div><div>&nbsp; &nbsp; \:foo:p</div><div><br></div><div>uses : as the delimiter for an address pattern. This does not apply to the "s" command, since it knows after the "s" verb that a pattern follows.</div>
</div><div><br></div><div>(Note that ":" is a valid sed command, although not widely used; it's a label for a branch instruction. You just gave it a rather odd-looking label, and the reinplace does nothing as a result.)</div>
<div><br></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</div></div>
</div></blockquote></body></html>