Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Determining the length of "long"?



On Thu, 11 Sep 2014 21:39:01 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> } As an alternative, is there a direct way to print out a "long"
> } integer value as binary bytes in host byte order?
> 
> There's no guarantee that zsh's integer type is "long", so no, there
> is not.

In fact the shell goes to some lengths to find a 64-bit type to use for
arithmetic even on 32-bit architectures.  So tests on the range may well
be telling you about "long long".

pws



Messages sorted by: Reverse Date, Date, Thread, Author