[Bug 3091] Nonportable tool usage in scripts
Rich Felker
dalias at aerifal.cx
Tue Apr 5 15:43:39 UTC 2011
On Thu, Feb 10, 2011 at 09:33:32AM +0100, Denys Vlasenko wrote:
> > While BusyBox supports it, the -r option to sed is nonstandard, so
> > little is improved. If you want to go this route, use:
> >
> > sed -ne 's/\(^#\{0,1\} \{0,1\}CONFIG_.*\)$/"\1\\n"/gp' "$config"
> >
> > But really I don't care which solution is applied; I'd just like to
> > see _something_ correct done so I don't have to keep patching around
> > the issue.
>
> Current git should be fixed already. Ping me if it isn't.
It's not fixed in 1.18.4, which was released much later...
Rich
More information about the busybox
mailing list