sed issue
Cristian Ionescu-Idbohrn
cristian.ionescu-idbohrn at axis.com
Fri Jan 13 23:18:09 UTC 2012
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
More information about the busybox
mailing list