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.
This commit is contained in:
Jilles Tjoelker 2012-03-11 22:12:05 +00:00
parent 92ccae0399
commit 6d2b152f70

@ -0,0 +1,4 @@
# $FreeBSD$
_x=4 y_=5 z_z=6
[ "$((_x*100+y_*10+z_z))" = 456 ]