Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 28 |
Nodes: | 6 (1 / 5) |
Uptime: | 65:49:01 |
Calls: | 451 |
Files: | 1,049 |
Messages: | 94,882 |
BTW, Kornshell operates with bases up to 64 and I wonder what symbols
are used for that. [...]
And strange got this same error message for
ibase=14
Runtime warning (func=(main), adr=6): ibase too large, set to 16
On 2025-02-18, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
And strange got this same error message for
ibase=14
Runtime warning (func=(main), adr=6): ibase too large, set to 16
Did you already set ibase before and that "14" is no longer decimal
14?
[...]
BTW, Kornshell operates with bases up to 64 and I wonder what symbols
are used for that. Tests show that it depends on the base; for small
bases letters in caps are handled like lowercase letters, for larger
bases using caps matters, and for some bases we even get errors, e.g.
$ echo $((37#ff))
570
$ echo $((37#FF))
ksh: 37#FF: arithmetic syntax error
Looks like a bug to me.