Busybox build problem

Denis Vlasenko vda.linux at googlemail.com
Sat Feb 3 23:34:32 UTC 2007


On Saturday 03 February 2007 06:14, Brion Finlay wrote:
> The fix that could be made to scripts/mkconfigs in order to work more
> generally, be less indirect, and avoid some of the backslash quoting would
> be to eliminate the echo "`...`" construction and just execute the command
> directly.  That is, change this:
> 
> echo "`sed 's/\"/\\\\\"/g' $config | grep "^#\? \?CONFIG_" | awk '{print
> "\\"" $0 "\\\\n\\"";}'`"
> 
> to this:
> 
> sed 's/\"/\\\\\"/g' $config | grep "^#\? \?CONFIG_" | awk '{print "\"" $0
> "\\n\"";}'
> 
> I tested this change under bash and dash and it works in both shells.

But it doesn't work for me. ;) Your sed should have three \\\ instead of five.

Can you try the attached patch? Will apply if it also works for you.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4.patch
Type: text/x-diff
Size: 1349 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070204/3103bfbe/attachment-0002.bin 


More information about the busybox mailing list