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:
parent
92ccae0399
commit
6d2b152f70
4
tools/regression/bin/sh/expansion/arith12.0
Normal file
4
tools/regression/bin/sh/expansion/arith12.0
Normal file
@ -0,0 +1,4 @@
|
||||
# $FreeBSD$
|
||||
|
||||
_x=4 y_=5 z_z=6
|
||||
[ "$((_x*100+y_*10+z_z))" = 456 ]
|
Loading…
x
Reference in New Issue
Block a user