bin/122659: [patch] sh(1) long arithmetics broken on certain architectures

Stefan Farfeleder stefanf at FreeBSD.org
Sun Apr 20 23:25:41 UTC 2008


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.


More information about the freebsd-bugs mailing list