On 08/07/18 01:39 PM, Carlos E. R. wrote:
Yap, I know, no float math natively.
I was delighted when the shell moved on from the original Bourne minimalist of the PDP-11 not-enough-memory days to include such common things as that print formatting, a built-in 'test' and a few other things that were common in scripts. having a built in 'expr' and that concept expanded to deal with arithmetic (such as loop counting!) was wonderful. I wasn't to happy with the bloat that followed for interactive use. But that is the price paid for the one shell for terminal and scripts and being able to type scripts at the command line. But it's not real arithmetic, is it, only integer arithmetic? Other scripting languages could deal with floating point. The basic Linux shell can't, but the Korn shell of 25 years ago could. Now why was that ksh code never fitted on BASH? -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org