On Sat, Jan 15, 2011 at 03:35:43PM -0500, Ted Unangst wrote:
| On Sat, Jan 15, 2011 at 3:30 PM, Otto Moerbeek <[email protected]> wrote:
| >> >Additionally, i very much prefer to have as little as possible
| >> >differecnes between expr(1) and the ksh builtin.
| >>
| >> Ehum, running the risk of looking like a complete fool I've got to
| >> ask, is there actually a ksh builtin version of expr?
| >>
| >> I did actually double check that prior to digging into this, with
| >> "whence expr", and now after reading your comment I've skimmed the
| >> man page for ksh as well without finding any reference to a builtin
| >> expr. What am I missing?
| >
| > You are right, I was confused.
|
| although making $(()) handle 64-bit may also be a nice addition.
64-bit archs already support 64-bit $(()). 32-bit archs do not.
Well, at least the common examples for these platforms:
[weerd@impreza] $ machine
amd64
[weerd@impreza] $ echo $((1024*1024*1024*5))
5368709120
[weerd@tuna] $ machine
i386
[weerd@tuna] $ echo $((1024*1024*1024*5))
1073741824
Paul 'WEiRD' de Weerd
--
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
http://www.weirdnet.nl/