On Sat, 14 Jan 2012, Cristian Ionescu-Idbohrn wrote:
> On Fri, 13 Jan 2012, Natanael Copa wrote:
> >
> > happens with both.
> >
> > $ bash -c "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 \{\}
>
> Now, wait a second. I don't se that. busybox master top-dir:
>
> $ bash -c "./busybox sed -ne \
> 's,^[[:blank:]]*\#[[:blank:]]*define[[:blank:]]\{1\,\}BB_DIR_USR_SBIN[[:blank:]]\{1\,\},,p'
> \
> include/applets.h"
> BB_DIR_SBIN
>
> $ sed -ne \
> 's,^[[:blank:]]*\#[[:blank:]]*define[[:blank:]]\{1\,\}BB_DIR_USR_SBIN[[:blank:]]\{1\,\},,p'
> \
> include/applets.h
> BB_DIR_SBIN
>
> $ ./busybox sed -ne \
> 's,^[[:blank:]]*\#[[:blank:]]*define[[:blank:]]\{1\,\}BB_DIR_USR_SBIN[[:blank:]]\{1\,\},,p'
> \
> include/applets.h
> BB_DIR_SBIN
>
> How does that '#define BOOT_TRAMPOLINE ...' look like in original?
On Sat, 14 Jan 2012, Alexander Kriegisch wrote:
>
> > How does that '#define BOOT_TRAMPOLINE ...' look like in original?
>
> I had googled it up earlier and used it in my previous posting. Check it out.
Right.
Now, the original sed regex works with all:
GNU sed version 4.2.1
busybox v1.20.0.git, sed
bash version 4.2.20 around busybox sed above
Would seem to be a bug both in your bash and busybox v1.19.3.
What's your command line shell/bash shell version?
I stongly suspect some king of escaping bug in your login shell.
Cheers,
--
Cristian
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox