Date: Sat, 18 Dec 2010 23:03:51 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh arith_lex.l src/tools/regression/bin/sh/expansion arith8.0 Message-ID: <201012182305.oBIN5rsg069910@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012182305.oBIN5rsg069910>