Re: Incorrect exit status of the Build-IN (( ))

2012-12-07 Thread DJ Mills
This is the expected behavior, and it's the same in any language with a '++' syntax. var++ is POST-incrementing, that means the '+1' happens AFTER the expansion. If you want it to happen before, you need pre-incrementing. ++var. On Fri, Dec 7, 2012 at 5:52 AM, Orlob Martin (EXT) < extern.martin.o

Re: Incorrect exit status of the Build-IN (( ))

2012-12-07 Thread Pierre Gaston
On Fri, Dec 7, 2012 at 12:52 PM, Orlob Martin (EXT) < extern.martin.or...@esolutions.de> 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='

Incorrect exit status of the Build-IN (( ))

2012-12-07 Thread Orlob Martin (EXT)
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' -DPACKA