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! _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "[email protected]"
