Hi!

On Fre, 2012-01-13 at 10:28 +0100, Natanael Copa wrote:
[...]
> When building xen it fails with a sed expression. Building with GNU sed works.
> 
> $ busybox sed -n
> 's,^\#define[[:space:]]\{1\,\}BOOT_TRAMPOLINE[[:space:]]\{1\,\},,p'
> sed: bad regex '^\#define[[:space:]]\{1\,\}BOOT_TRAMPOLINE[[:space:]]\{1\,\}':
> Invalid content of \{\}

The line looks over-quoted as it is in single quotes and IMHO the
following was actually intended (or do I just miss a quoting level):
's,^#define[[:space:]]{1,}BOOT_TRAMPOLINE[[:space:]]{1,},,p'

> I have not investigated if the sed line could be rewritten in a
> standards compliant way or if its a bug in busybox sed.

"{1,}" is equivalent to "+", so 
's/^#define[[:space:]]+BOOT_TRAMPOLINE[[:space:]]+//p'
should be equivalent (and since we have no path names, we can use "/").

Kind regards,
        Bernd
-- 
Bernd Petrovitsch                  Email : [email protected]
                     LUGA : http://www.luga.at

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to