Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2008 01:09:50 +0200
From:      Stefan Farfeleder <stefanf@FreeBSD.org>
To:        freebsd-bugs@freebsd.org
Subject:   Re: bin/122659: [patch] sh(1) long arithmetics broken on certain architectures
Message-ID:  <20080420230950.GB907@lizard.fafoe.narf.at>

next in thread | raw e-mail | index | archive | help
SUSv3 seems to allow using integer types wider than long:

"2.6.4 Arithmetic Expansion
[...]
As an extension, the shell may recognize arithmetic expressions beyond
those listed. The shell may use a signed integer type with a rank larger
than the rank of signed long."

So I think FreeBSD's sh should use intmax_t, as does NetBSD.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080420230950.GB907>