tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: SUBST_SED and newline?



On Wed, 09 Dec 2009, Georg Schwarz wrote:
> Am 07.12.2009 um 08:04 schrieb fulvio ciriaco:
> >What about
> >SUBST_SED.xxx+= s/ab/a\\${.newline}b/g
> >?
> >It works fine and is quite easy to manage.
> 
> for me it does not work. With
> 
> SUBST_SED.sysio=        -e 's,^\#include <sys/io\.h>,\#ifndef
> __sun\\${.newline}\#include <sys/io.h>\\${.newline}\#endif,g'

The original suggestion did not have quotes, so the backslash needed
to be doubled.  If you rewrite it with single quotes, then the
backslash should not be doubled.

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index