On Fri, 13 Jan 2012, Natanael Copa wrote:
> On Fri, Jan 13, 2012 at 12:16 PM, Cristian Ionescu-Idbohrn 
> <[email protected]> wrote:
>
> What busybox version was that?

busybox v1.19.3

> awk is more readable...
>
> awk '$1 == "#define" && $2 == "BOOT_TRAMPOLINE" {print $3}'

Matter of taste, but it's a bigger hammer :)

> I think I'll got with as little intrusive patch as possible for xen
> upstream.

Right.  Still, question remains: what's wrong with:

>> > $ 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 \{\}

Should work with busybox too.  Even if ',' is used as separator, it's IMO
corectly escaped in range '\{1\,\}'.  Thoughts?


Cheers,

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

Reply via email to