[BusyBox] [PATCH] keep initial leading whitespace in sed 'a' cmd (1.0.0-pre8)
Erik Andersen
andersen at codepoet.org
Thu Apr 1 09:27:18 UTC 2004
On Thu Apr 01, 2004 at 01:44:16AM -0600, Rob Landley wrote:
> On Wednesday 31 March 2004 05:42, Erik Andersen wrote:
> > On Tue Mar 30, 2004 at 11:26:51AM -0800, Junio Hamano wrote:
> > > The sed command in busybox 1.0.0-pre8 loses leading whitespace
> > > in 'a' command ('i' and 'c' commands are also affected). A
> > > patch to fix this is attached at the end of this message.
> >
> > Applied thanks,
> >
> > -Erik
>
> Actually, you just broke:
>
> sed -i "/^config setup/a fred" ipsec.conf
>
> Which works in gnu sed. (And is _supposed_ to strip all the whitespace before
> "fred".) For that matter, you broke:
>
> sed -i -e "/^config setup/a \\" -e " fred" ipsec.conf
>
> I.E. there can legally be spaces between the a and the backslash at the end of
> the line.
Sorry about that. Thanks for checking and fixing it.
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the busybox
mailing list