Many thanks, guys!
On Wed, Jul 20, 2011 at 7:46 PM, Jonathan Nieder 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 wrote:
>
On Wed, Jul 20, 2011 at 1:35 PM, Cédric Martínez Campos
wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_6
Hi Cédric,
Cédric Martínez Campos wrote:
> $ echo $((08+1))
> bash: 08: too big element for the base (the error element is "08")
> [translated from spanish]
Strings of digits starting with a '0' in an arithmetic expansion are
octal numbers. The bash FAQ[*] has some details.
Hope th
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE