sed behaving strangely when -n and the delete command are combined

Denys Vlasenko vda.linux at googlemail.com
Tue Jun 30 17:15:22 UTC 2009


On Tue, Jun 30, 2009 at 2:27 PM, Maximilian
Gaß<mxey.busybox at ghosthacking.net> wrote:
> I have been trying to build eglibc 2.10 on a Busybox-based system. The
> build process is doing some processing with sed, where GNU sed works and
> Busybox sed fails.
>
> I simplified the sed command to the relevant parts:
>
> sed -n -e '1d' -e '1,/@HEADER_ENDS/p' initfini.s
>
> Busybox sed gives no output,  while GNU sed gives the expected
>
> #APP
>
> #include "defs.h"
>
> /*@HEADER_ENDS*/
>
> It works properly when 1 in the second command is changed to 2. I attached initfini.s

Thanks.

Please try attached patch.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9.patch
Type: text/x-patch
Size: 16502 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090630/cb10867a/attachment-0001.bin>


More information about the busybox mailing list