sed issue
ralda at gmx.de
ralda at gmx.de
Fri Jan 13 20:48:28 UTC 2012
Hi!
> 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?
Which shell do you use? Does this fail if you use bash or only if the
Busybox sh is involved. That quoting trouble looks like a problem in
Busybox sh when using single quotes. This fails on other programs to as
the backslash quoting character is/is not removed by the shell
argument passing as expected. So try this first before digging to deep
into sed.
--
Harald
More information about the busybox
mailing list