[BusyBox] config.h/bb_config.h translation broken

Paul Fox pgf at brightstareng.com
Tue Aug 2 18:25:23 UTC 2005


 > > i think inserting newlines with sed can be hard to do portably
 > 
 > The portable way to insert a newline in sed is using an escaped
 > literal newline character. I prefer the look of \n when it's supported
 > though.
 > 
 > sed 's/a/a0\
 > a1/'

i thought of trying to rewrite rob's original line using that
technique (since it's what i've mostly done in the past) but the
sum of the syntax requirements of make, shell, and sed made me
reconsider.

 > Alternatively, you can use multiple print commands:
 > 
 > sed 'h; s/b/b0/; p; g; s/b/b1/'

slick.  thanks for that.

paul
=---------------------
 paul fox, pgf at brightstareng.com



More information about the busybox mailing list