Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 78710 - intereger comparisons limited by 2^31
Summary: intereger comparisons limited by 2^31
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: bash
Version: 7.3
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Ben Levenson
Depends On:
TreeView+ depends on / blocked
Reported: 2002-11-28 01:11 UTC by Matthew Melvin
Modified: 2007-04-18 16:48 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2002-11-28 01:12:50 UTC

Attachments (Terms of Use)

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:

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.