[BusyBox] [PATCH] keep initial leading whitespace in sed 'a' cmd (1.0.0-pre8)
Junio Hamano
junio at twinsun.com
Thu Apr 1 19:18:48 UTC 2004
>>>>> "EA" == Erik Andersen <andersen at codepoet.org> writes:
>> 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.
EA> Sorry about that. Thanks for checking and fixing it.
Same here, sorry about that. I was only looking at GNU sed info
pages and SUSv3 manual pages, both of which only talked about
the 'a' command immediately followed by a backslash and a
newline, followed by a block of text each of whose internal
newline is quoted with a backslash. I did not realize GNU sed
allowed the usage you showed above.
More information about the busybox
mailing list