[BusyBox 0001110]: sed and grep don't work inside backticks is static-busybox
bugs at busybox.net
bugs at busybox.net
Sat Dec 9 18:54:17 PST 2006
The following issue has been CLOSED
======================================================================
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: closed
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 12-06-2006 03:08 PST
Last Modified: 12-09-2006 18:54 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
======================================================================
----------------------------------------------------------------------
vda - 12-09-06 18:54
----------------------------------------------------------------------
Known problem with static build with glibc. We have a nice explanatory
warning about that.
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
12-09-06 18:54 vda Status assigned => closed
12-09-06 18:54 vda Note Added: 0001859
======================================================================
More information about the busybox-cvs
mailing list