Red Hat Bugzilla – Bug 453123
[REGRESSION] Wrong input confuses bash's arithmetic unit permanently
Last modified: 2014-01-12 19:07:34 EST
Description of problem:
Bug #286861 affects RHEL 5.2 too:
: $(( 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
Version-Release number of selected component (if applicable):
Patch should be backported.
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.
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.