Re: query on bash on HP-UX B.10.20/B.11.11

From: Eichhorn Peter (eichhorn.peter_at_web.de)
Date: 08/23/04


Date: 23 Aug 2004 03:41:57 -0700

jsb_bh@yahoo.com (jsb_bh) wrote in message news:<f092799f.0408190358.35a696ed@posting.google.com>...
> Which version of bash on HP-UX will give proper result of the
> following addition. i.e. the result of two positive numbers, one of
> which is 4294967295, is greater than the two operands:
>
> bash-3.0 > M=4294967295
> bash-3.0 > V=65536
> bash-3.0 > expr $M + $V
> 4295032831 /* expected. but, getting 65535 here */
> bash-3.0 >
>
> I am using bash-3.0 on HP-UX B.11.11, which is giving me the result
> 65535 instead of 4295032831.

Are you sure 'expr' is an internal command? Normally 'expr' is externel!
Test it with 'whence expr' or 'which expr'

- PeterE



Relevant Pages