Date: Sun, 11 Mar 2012 22:53:56 +0000 From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> To: Jilles Tjoelker <jilles@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r232839 - head/tools/regression/bin/sh/expansion Message-ID: <0794D464-56BC-4840-BC32-6E0D79EE602D@lists.zabbadoz.net> In-Reply-To: <201203112212.q2BMC5Z4029090@svn.freebsd.org>
index | next in thread | previous in thread | raw e-mail
On 11. Mar 2012, at 22:12 , Jilles Tjoelker wrote: > Author: jilles > Date: Sun Mar 11 22:12:05 2012 > New Revision: 232839 > URL: http://svn.freebsd.org/changeset/base/232839 > > Log: > sh: Add a test for variables with underscores in arithmetic. > > Things like $((_x+1)) are broken in stable/8 sh but work in stable/9 and > head. Thanks! > Added: > head/tools/regression/bin/sh/expansion/arith12.0 (contents, props changed) > > Added: head/tools/regression/bin/sh/expansion/arith12.0 > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/tools/regression/bin/sh/expansion/arith12.0 Sun Mar 11 22:12:05 2012 (r232839) > @@ -0,0 +1,4 @@ > +# $FreeBSD$ > + > +_x=4 y_=5 z_z=6 > +[ "$((_x*100+y_*10+z_z))" = 456 ] -- Bjoern A. Zeeb You have to have visions! It does not matter how good you are. It matters what good you do!home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0794D464-56BC-4840-BC32-6E0D79EE602D>
