[SuSE Linux] "let" limit
Hello, What is the upper limit of numerical values for the command "let"? Is it pow(2,32) - 1 ? There is no man page on that command... The script I wrote works correct under AIX ksh but in linux it reports negative values instead of some really large numbers :-( I tried it both under ksh and bash... Is there a variable that can be set in some header file to extend the limit? Pointers are appreciated... -alexm ----------- If you want something done - do it yourself. --Zorg - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Hi, On Mon, Nov 09, alexm wrote:
What is the upper limit of numerical values for the command "let"? Is it pow(2,32) - 1 ? There is no man page on that command...
"let" is a bash builtin. "man bash": ARITHMETIC EVALUATION The shell allows arithmetic expressions to be evaluated, under certain circumstances (see the let builtin command and Arithmetic Expansion). Evaluation is done in long integers with no check for overflow, though division by 0 is trapped and flagged as an error. The following list of "long integers" !
The script I wrote works correct under AIX ksh but in linux it reports negative values instead of some really large numbers :-( I tried it both under ksh and bash... Is there a variable that can be set in some header file to extend the limit?
Pointers are appreciated...
-alexm -o) Hubert Mantel Goodbye, dots... /\\ _\_v
Look at the source to bash - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
participants (2)
-
alexm@htr-60.tx.symbio.net
-
mantel@suse.de