On most unix-like platforms, sizeof(int) == 4, even for 64-bit binaries, and
you still need ‘long int’ to get 64-bits.
From: Igor Kozhukhov
Reply: openzfs-developer
Date: June 26, 2018 at 4:05:22 AM
To: openzfs-developer
Cc: Yuri Pankov
Subject: Re: [developer] Re: zfs tests design/issues
> On Jun 26, 2018, at 4:03 AM, Igor Kozhukhov wrote:
>
> 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
On Mon, 25 Jun 2018 at 16:52, Igor Kozhukhov 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 -
On Mon, 25 Jun 2018 at 16:37, Igor Kozhukhov 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
Igor Kozhukhov wrote:
https://en.wikipedia.org/wiki/9,223,372,036,854,775,807
64bit int max value
where am i wrong?
'typeset -i' is 'int', try using 'typeset -li' if you need something
like 'long'.
On Jun 26, 2018, at 2:33 AM, Yuri Pankov wrote:
Igor Kozhukhov wrote:
additional reason
https://en.wikipedia.org/wiki/9,223,372,036,854,775,807
64bit int max value
where am i wrong?
-Igor
> On Jun 26, 2018, at 2:33 AM, Yuri Pankov wrote:
>
> Igor Kozhukhov wrote:
>> additional reason move on from illumos KSH93.
>> I have found issue with zfs tests 'zvol_swap' whare we try to
Igor Kozhukhov wrote:
additional reason move on from illumos KSH93.
I have found issue with zfs tests 'zvol_swap' whare we try to read 2G
volsize in bytes.
try to do simple test:
#!/bin/ksh -p
typeset -i var=2147483648
echo $var
and i can see:
# ksh93 v.ksh
-2147483648
it is incorrect -
additional reason move on from illumos KSH93.
I have found issue with zfs tests 'zvol_swap' whare we try to read 2G volsize
in bytes.
try to do simple test:
#!/bin/ksh -p
typeset -i var=2147483648
echo $var
and i can see:
# ksh93 v.ksh
-2147483648
it is incorrect - it should not to be less