From owner-cvs-src-old@FreeBSD.ORG Sat Jul 9 12:06:09 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C6A91065679 for ; Sat, 9 Jul 2011 12:06:09 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4BCA58FC0A for ; Sat, 9 Jul 2011 12:06:09 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p69C69ku013424 for ; Sat, 9 Jul 2011 12:06:09 GMT (envelope-from se@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p69C69DD013423 for cvs-src-old@freebsd.org; Sat, 9 Jul 2011 12:06:09 GMT (envelope-from se@repoman.freebsd.org) Message-Id: <201107091206.p69C69DD013423@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to se@repoman.freebsd.org using -f From: Stefan Esser Date: Sat, 9 Jul 2011 12:05:53 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/expr expr.1 expr.y X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jul 2011 12:06:09 -0000 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