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
0002044 [BusyBox] Other major always 02-05-08 11:31 02-11-08 04:51
Reporter kkkonrad View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version svn
Summary 0002044: ash - problem with expression evaluation
Description with at least 1.6.x till yesterdays svn the following
expression incorrectly evaluates to true:

if [ ! "a" = "b" -a ! "c" = "c" ];then echo true;fi

(found while modifying the initial ramdisk in the
RIP (Recovery Is Possible) Linux distribution.

The last version which seems to work OK is busybox-1.5.1.

busybox 1.6.0 gets it wrong slightly different:
both:
if [ ! "a" = "b" -a ! "c" = "d" ];then echo true;fi
and
if [ ! "a" = "b" -a ! "c" = "c" ];then echo true;fi
dont evaluate to true.

defconfiged, compiled on Fedora 7 and running in a chrooted environment
using F7's current glibc.

Greetings,
Konrad
Additional Information
Attached Files

- Relationships

- Notes
(0003764)
vda
02-08-08 21:53

it's not an ash bug, it's test applet bug.

Try this patch:

http://busybox.net/downloads/fixes-1.9.0/busybox-1.9.0-test.patch [^]
 
(0003834)
kkkonrad
02-11-08 04:39

Thanks for the quick fix, works like a charm.

Konrad
 
(0003844)
bernhardf
02-11-08 04:51

Fixed on trunk.
 

- Issue History
Date Modified Username Field Change
02-05-08 11:31 kkkonrad New Issue
02-05-08 11:31 kkkonrad Status new => assigned
02-05-08 11:31 kkkonrad Assigned To  => BusyBox
02-08-08 21:53 vda Note Added: 0003764
02-11-08 04:39 kkkonrad Note Added: 0003834
02-11-08 04:51 bernhardf Status assigned => closed
02-11-08 04:51 bernhardf Note Added: 0003844
02-11-08 04:51 bernhardf Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker