the same test with BASH (64bit) root@zfs-test1:/opt# cat v.sh #!/bin/bash typeset -i var=2147483648 echo $var
root@zfs-test1:/opt# bash v.sh 2147483648 it is ksh93 bug - not Debian. i didn’t say about - it is illumos ksh bug - i just say about ksh93 issue with 2G value in bytes with 64bit application. and - I have started thread about - move on from KSH to another shell for zfs tests - as part of another proposals.. -Igor > On Jun 26, 2018, at 2:45 AM, Joshua M. Clulow <[email protected]> wrote: > > On Mon, 25 Jun 2018 at 16:37, Igor Kozhukhov <[email protected]> wrote: >> 64bit int max value >> >> where am i wrong? > > What makes you think it's a 64-bit integer? > > On a computer running Debian (the technology!) I get the same result > with the ksh93 package they provide: > > bash$ uname -v > #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 > bash$ ksh93 --version > version sh (AT&T Research) 93u+ 2012-08-01 > bash$ ksh93 > $ typeset -i var=2147483648 > $ echo $var > -2147483648 > > Cheers. > > -- > Joshua M. Clulow > Engineer @ Joyent > http://blog.sysmgr.org ------------------------------------------ openzfs: openzfs-developer Permalink: https://openzfs.topicbox.com/groups/developer/T42f8147492666f65-M8f1fe4aa1b52359a0bc3af19 Delivery options: https://openzfs.topicbox.com/groups
