[BusyBox 0002044]: ash - problem with expression evaluation

bugs at busybox.net bugs at busybox.net
Tue Feb 5 19:31:06 UTC 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=2044 
====================================================================== 
Reported By:                kkkonrad
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   2044
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             02-05-2008 11:31 PST
Last Modified:              02-05-2008 11:31 PST
====================================================================== 
Summary:                    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
====================================================================== 

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         
======================================================================




More information about the busybox-cvs mailing list