bug-bash
[Top][All Lists]
Advanced

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

Re: integer addition crash


From: Cédric Martínez Campos
Subject: Re: integer addition crash
Date: Thu, 21 Jul 2011 10:19:44 +0100

Many thanks, guys!

On Wed, Jul 20, 2011 at 7:46 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
>
> Hope that helps,
> Jonathan
>
> [*] http://tiswww.case.edu/php/chet/bash/FAQ
> question E8 ("Why does the arithmetic evaluation code complain about
> `08'?")
>

On Thu, Jul 21, 2011 at 7:47 AM, Pierre Gaston <pierre.gaston@gmail.com> wrote:
>
> integer with a leading 0 are considered as octal by bash and 08 is not
> valid in base 8.
> you can force the base doing:
> echo $((10#08+1))
>



reply via email to

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