Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 78710

Summary: intereger comparisons limited by 2^31
Product: [Retired] Red Hat Linux Reporter: Matthew Melvin <matthewmelvin>
Component: bashAssignee: Tim Waugh <twaugh>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-11-28 01:12:50 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 Matthew Melvin 2002-11-28 01:11:35 UTC
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:
Always

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