On Tuesday 15 April 2008 12:14:57 Marijn Schouten (hkBst) wrote: > There are several option to handle this. I could use a less common > delimiter or I could escape it: ${D//_/\_} instead of ${D}. I could use a > sed expression that doesn't suffer from this problem (thanks to dleverton): > > sed -ne '\_^prefix = /usr/local_!{p;d}' -e "iprefix = ${D}" -i Makefile
Just to clarify, I didn't think of escaping when I suggested this. Escaping is probably cleaner, and certainly easier to understand. -- gentoo-dev@lists.gentoo.org mailing list