[BusyBox 0001110]: sed and grep don't work inside backticks is static-busybox
bugs at busybox.net
bugs at busybox.net
Wed Dec 6 03:08:53 PST 2006
The following issue has been SUBMITTED.
======================================================================
http://busybox.net/bugs/view.php?id=1110
======================================================================
Reported By: nielchiano
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 1110
Category: Standards Compliance
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
======================================================================
Date Submitted: 12-06-2006 03:08 PST
Last Modified: 12-06-2006 03:08 PST
======================================================================
Summary: sed and grep don't work inside backticks is
static-busybox
Description:
I've also posted this bug here:
http://bugs.gentoo.org/show_bug.cgi?id=157118
Short copy-paste:
busybox sh
TEST="`echo abc | sed -n '/abc/p'`"; echo $TEST
# gives abc, as expected
busybox.static sh
TEST="`echo abc | sed -n '/abc/p'`"; echo $TEST
# gives empty line!!!!!!!
This bug hit me when trying to make an initramfs (hence the need for the
static
binary); it took me 3 hours to pin it down to the usage of sed INSIDE
backticks
(or the $() construct).
This also fails: echo `echo abc | grep abc`
this works: echo `echo abc | awk '/abc/p'`
I tried this bug on 3 different machines and was able to reproduce it on
version 1.2.2.1; this bug does not exist on 1.1.0 and 1.2.1
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
12-06-06 03:08 nielchiano New Issue
12-06-06 03:08 nielchiano Status new => assigned
12-06-06 03:08 nielchiano Assigned To => BusyBox
======================================================================
More information about the busybox-cvs
mailing list