personally to me, KSH is wrong with result - because 64bit application should to use 64bit intager as others applications. BASH and ZSH are agreed with me and produce correct result. i didn’t check others shells. how is old/updated KSH? based on Debian changelog file - 93u+20120801-3.1 - it is code drop from 2012 year.
but BASH is: https://packages.debian.org/stretch/bash <https://packages.debian.org/stretch/bash> 4.4 latest version http://git.savannah.gnu.org/cgit/bash.git?h=devel My primary goal was and is: to use more universal/the same tools as others platforms: Linux, FreeBSD, OSX. and i think - BASH will be much more better as default shell for zfs tests. because others platforms - like Linux, FreeBSD, OSX - have no KSH as default installed and should install it only for zfs tests. I’d like to see comments about this idea from OpenZFS community. also, about others ideas, described in first email with this subject. -Igor > On Jun 26, 2018, at 2:59 AM, Joshua M. Clulow <[email protected]> wrote: > > On Mon, 25 Jun 2018 at 16:52, Igor Kozhukhov <[email protected]> wrote: >> the same test with BASH (64bit) > > Bash is a different shell, with different behaviour. For what it's > worth, the "typeset -li" syntax also appears to work in bash. > >> 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. > > As far as I can tell, it's working the way it's intended to work; > i.e., that "typeset -i" gets you a 32-bit int and "typeset -li" gets > you a longer (64-bit) integer. > >> and - I have started thread about - move on from KSH to another shell for >> zfs tests - as part of another proposals.. > > This is not really a justification for making a change of that scope, > merely for fixing the bug you found in the original script. It should > be a simple fix now that we understand the problem. > > Cheers. > > -- > Joshua M. Clulow > Engineer @ Joyent > http://blog.sysmgr.org ------------------------------------------ openzfs: openzfs-developer Permalink: https://openzfs.topicbox.com/groups/developer/T42f8147492666f65-M1a8281eaa97f2e9144937731 Delivery options: https://openzfs.topicbox.com/groups
