bug-bash
[Top][All Lists]
Advanced

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

value too great for base (error token is "0008")


From: Dobromir Romankiewicz
Subject: value too great for base (error token is "0008")
Date: Tue, 3 Nov 2009 23:45:37 +0100
User-agent: KMail/1.9.9

Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation 
CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' 
-DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' 
-DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H   -I.  
-I../bash -I../bash/include -I../bash/lib   -g -O2 -Wall
uname output: Linux debian 2.6.26-2-686 #1 SMP Wed Aug 19 06:06:52 UTC 2009 
i686 GNU/Linux
Machine Type: i486-pc-linux-gnu

Bash Version: 3.2
Patch Level: 39
Release Status: release

Description:
        [
Well... Just paste those functions into your text konsole, and compare to my 
results:

:1() { x1=0; x2=0; x3=0; x4=7
echo $[$x1$x2$x3$x4]
}
The result is 7.

And run this code:
:2() { x1=0; x2=0; x3=0; x4=8
echo $[$x1$x2$x3$x4]
}
It crashes with message:
bash: 0008: value too great for base (error token is "0008").

:3() { x1=0; x2=0; x3=0; x4=8
echo $[$x4$x2$x3$x1]
}
works well, printing 8000.

Similar codes
:4() { x1=0; x2=0; x3=0; x4=8
s=$x1$x2$x3$x4
echo $[$s]
}
or
:5() { x1=0; x2=0; x3=0; x4=8
s=$x1$x2$x3$x4
echo $[s]
}
goes the same way like :2
Oh, if x4=9 it goes the same way as if x4=8. I didn't check higher values.
]

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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