Bug 453123

Summary: [REGRESSION] Wrong input confuses bash's arithmetic unit permanently
Product: Red Hat Enterprise Linux 5 Reporter: Enrico Scholz <rh-bugzilla>
Component: bashAssignee: Roman Rakus <rrakus>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: urgent Docs Contact:
Priority: high    
Version: 5.2CC: tsmetana
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-20 21:10:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Enrico Scholz 2008-06-27 13:00:24 UTC
Description of problem:

Bug #286861 affects RHEL 5.2 too:

Scripts like

-----
: $(( tmp=foo.a+0 )) 
i=0 ; : $(( ++i )) ; echo $i 
-----

return the expected '1' on RHEL 5.1, but '0' on RHEL 5.2.  Further arithmetic
operations will be ignored silently.


This breaks existing applications, which check e.g. for numeric input with this
method.


Version-Release number of selected component (if applicable):

bash-3.2-21.el5 (broken)
bash-3.1-16.1   (ok)


How reproducible:

100%

Comment 1 Roman Rakus 2008-06-27 14:10:02 UTC
Patch should be backported.

Comment 2 RHEL Program Management 2008-06-27 14:24:35 UTC
This bugzilla has Keywords: Regression.  

Since no regressions are allowed between releases, 
it is also being proposed as a blocker for this release.  

Please resolve ASAP.

Comment 9 errata-xmlrpc 2009-01-20 21:10:10 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0116.html