Bug 78710 - intereger comparisons limited by 2^31
intereger comparisons limited by 2^31
Product: Red Hat Linux
Classification: Retired
Component: bash (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2002-11-27 20:11 EST by Matthew Melvin
Modified: 2007-04-18 12:48 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-11-27 20:12:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Matthew Melvin 2002-11-27 20:11:35 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020830

Description of problem:
When using interger tests with bash 2.05a with any number greater than
2147483647 results in an error "integer expression expected"

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

How reproducible:

Steps to Reproduce:
Do an interger comparison with numbers larget than 2147483647 on a redhat 7.3
box.  Eg:

$ [ "2147483648" -eq "2147483648" ] && echo equal

Actual Results:  $ [ "2147483648" -eq "2147483648" ] && echo equal
[: 2147483648: integer expression expected

Expected Results:  $ [ "2147483648" -eq "2147483648" ] && echo equal

Additional info:

Test this problem against bash 1.14.7 and 2.03.8 on a rh6.2 box as well as 2.05b
on a rh8.0 box and the tests work as expected.  Appears to only affect 2.05a. 
Upgrading the rh7.3 box to use the 2.05b package from rh8.0 (rebuild from srpm)
fixed the problem.

Note You need to log in before you can comment on or make changes to this bug.