From owner-cvs-src-old@FreeBSD.ORG Sat Dec 18 23:05:53 2010 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 916C61065693 for ; Sat, 18 Dec 2010 23:05:53 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7E93D8FC08 for ; Sat, 18 Dec 2010 23:05:53 +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 oBIN5rEE069911 for ; Sat, 18 Dec 2010 23:05:53 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oBIN5rsg069910 for cvs-src-old@freebsd.org; Sat, 18 Dec 2010 23:05:53 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201012182305.oBIN5rsg069910@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Sat, 18 Dec 2010 23:03:51 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh arith_lex.l src/tools/regression/bin/sh/expansion arith8.0 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, 18 Dec 2010 23:05:53 -0000 jilles 2010-12-18 23:03:51 UTC FreeBSD src repository Modified files: bin/sh arith_lex.l Added files: tools/regression/bin/sh/expansion arith8.0 Log: SVN rev 216547 on 2010-12-18 23:03:51Z by jilles sh: arith: Disallow decimal constants starting with 0 (containing 8 or 9). Constants in arithmetic starting with 0 should be octal only. This avoids the following highly puzzling result: $ echo $((018-017)) 3 by making it an error instead. Revision Changes Path 1.29 +2 -2 src/bin/sh/arith_lex.l 1.1 +4 -0 src/tools/regression/bin/sh/expansion/arith8.0 (new)