[BusyBox 0002044]: ash - problem with expression evaluation
bugs at busybox.net
bugs at busybox.net
Fri Feb 8 21:53:59 PST 2008
A NOTE has been added to this issue.
======================================================================
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-08-2008 21:53 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
======================================================================
----------------------------------------------------------------------
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
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
======================================================================
More information about the busybox-cvs
mailing list