BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001110 [BusyBox] Standards Compliance major always 12-06-06 03:08 12-09-06 18:54
Reporter nielchiano View Status public  
Assigned To BusyBox
Priority normal Resolution won't fix  
Status closed   Product Version 1.2.x
Summary 0001110: 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
Additional Information I'm using the default gentoo ebuild; so I don't know very much about all options used at compile time; But I can forward the question to the gentoo-guys, or try to find the answer myself.
Attached Files

- Relationships

- Notes
(0001859)
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
12-09-06 18:54 vda Resolution open => won't fix
12-11-06 04:19 nielchiano Issue Monitored: nielchiano
12-11-06 04:19 nielchiano Issue End Monitor: nielchiano


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker