bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug for 2.05a: fails to evaluate large integers


From: Conrado Vardanega
Subject: Bug for 2.05a: fails to evaluate large integers
Date: Wed, 16 Jan 2002 05:16:02 -0200

Configuration Information:                                         
Machine: i386
OS: freebsd4.4
Compiler: cc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='freebsd4.4' -DCONF_MACHTYPE='i386-unknown-freebsd4.4' -D
CONF_VENDOR='unknown' -DSHELL  -DHAVE_CONFIG_H   -I.  -I. -I./include
-I./lib -O -pipe
uname output: FreeBSD rock.varda.lan 4.4-STABLE FreeBSD 4.4-STABLE #20:
Thu Oct 18 18:06:26 BRST 2001     address@hidden:/usr/o
bj/usr/src/sys/CUSTOM  i386
Machine Type: i386-unknown-freebsd4.4

Bash Version: 2.05a
Patch Level: 0
Release Status: release

Description:
        Bash refuses large integers when supplied for a logical
evaluation.

Repeat-By:

        Run this line and see the error:

        if [ 3164 -gt 3164327683 ]; then echo GREATER; else echo NOT
GREATER; fi

        If you run the following lines it will work fine:

        if [ 3164 -gt 3164 ]; then echo GREATER; else echo NOT GREATER;
fi # false  
        if [ 3165 -gt 3164 ]; then echo GREATER; else echo NOT GREATER;
fi # true

        The comments are the real results for the comparisons.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]