On Mon, 12 Dec 2011 13:08:58 -0600 Bruce Dubbs <[email protected]> wrote: \ > sed -ir -e '/^LIBRARYNAME/a SHARED_LIBRARY = 1' \ > -e 's#BUILD_ARCHIVE :*= 1#NO_&#' \ > -e '/^USEDLIBS/s# ([A-Za-z]*).a# -l\1#g' \
This is wrong, the brackets should be escaped from sed like so: > -e '/^USEDLIBS/s# \([A-Za-z]*\).a# -l\1#g' \ You can't do a backreference if you don't escape the brackets. The brackets were escaped when I sent it to the list: http://linuxfromscratch.org/pipermail/blfs-dev/2011-December/021550.html Andy -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
