Date: Sat, 9 Jul 2011 12:05:53 +0000 (UTC) From: Stefan Esser <se@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/expr expr.1 expr.y Message-ID: <201107091206.p69C69DD013423@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
se 2011-07-09 12:05:53 UTC FreeBSD src repository Modified files: bin/expr expr.1 expr.y Log: SVN rev 223881 on 2011-07-09 12:05:53Z by se Make /bin/expr support 64bit numeric range and range checks by default, again. This brings back the behaviour of expr in FreeBSD-4, which had been reverted due to an assumed incompatbility with POSIX.1 for FreeBSD-5. This issue has been discussed in the freebsd-standards list, and the consensus was, that POSIX.1 is in fact not violated by this extension, since it affects only cases of POSIX undefined behaviour (overflow of signed long). Other operating systems did upgrade their versions of expr to support 64bit range, after it had been initially brought to FreeBSD. They have used it for a decade without problems, meanwhile. The -e option is retained, but it will only select less strict checking of numeric parameters (leading white-space, leading "+" are allowed and skipped, an empty string is considered to represent 0 in numeric context.) The call of check_utility_compat() as a means of establishing backwards compatibility with FreeBSD-4 is considered obsolete, but preserved in this commit. It is expected to be removed in a later revision of this file. Reviewed by: bde, das, jilles MFC after: 2 month (those parts that do not violate POLA) Revision Changes Path 1.31 +57 -25 src/bin/expr/expr.1 1.26 +95 -115 src/bin/expr/expr.y
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107091206.p69C69DD013423>