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

Bug#670539: general: error in shell script: 0208: value too great for base (error token is "0208")



Hi Steffen.

On Thu, Apr 26, 2012 at 5:58 PM, Steffen Erlecke
<steffen.erlecke@email.de> wrote:
> ../t.sh: line 15: 0208: value too great for base (error token is "0208")
> ../t.sh: line 16: 0209: value too great for base (error Error: XXX:
> Test-Error
> /* RESULT END */
>
> The questions now are: What is the difference from 0208 and 0209 to all other
> indices, and why is 0210 and above OK if 0209 is a "too large" value?

bash interprets numbers starting with 0 as octal numbers, but 8 and 9 aren't
octal digits. It's documented in the bash manpage. So, I would hardly
called this
a bug in Debian.

Cheers!
-- 
Sergei Golovan



Reply to: