On Jun 26, 2014, at 10:02 PM, Brandon Allbery <allber...@gmail.com> wrote:

> On Thu, Jun 26, 2014 at 10:53 PM, Mark Brethen <mark.bret...@gmail.com> wrote:
> I have tried using reinplace to insert a comment in a line but keep getting 
> an error:
> 
>  reinplace  -E "s|^LIBS=\$sim_ac_uniqued_list$|\# 
> LIBS=\$sim_ac_uniqued_list|g" \
>         ${worksrcpath}/configure
> 
> What am I doing wrong?
> 
> Including the error is usually helpful.
> 
> At a guess, though, what you're doing wrong is using double quotes. Tcl is 
> converting \$ to $ and \# to #, then you get a regex error because you have 
> an end anchor not at the end; it may also be trying to expand the $| and 
> failing because it's an illegal Tcl variable name.
> 
> In Tcl, you need to enclose things in braces {...} to protect them from 
> expansion. Otherwise, you'll need extra backslashes (\$ becomes \\\$, \# 
> becomes \\\#, $ becomes \$).
> 
> -- 
> brandon s allbery kf8nh                               sine nomine associates
> allber...@gmail.com                                  ballb...@sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

That was it, the brackets worked! However, I'm still having issues with SoQt.


Mark




_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to