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?
Cheers,
--
Cristian
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox