Hi, pae3 wrote on Tue, Feb 25, 2014 at 04:52:52PM +0400:
> on my i386 system: > > $expr 2147483648 + 0 > -2147483648 > $sh -c 'echo $((2147483648 + 0))' > -2147483648 > $bash -c 'echo $((2147483648 + 0))' > 2147483648 > $zsh -c 'echo $((2147483648 + 0))' > 2147483648 > > bug in ksh? No. Assuming you are running on an ILP32 platform (for example, OpenBSD-i386), these are bugs in bash and zsh and should be fixed there, ksh is correct. Yours, Ingo