diff options
author | jilles <jilles@FreeBSD.org> | 2012-03-11 22:12:05 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2012-03-11 22:12:05 +0000 |
commit | 6fb55612a3f4281874870c5569ed552bd9c83080 (patch) | |
tree | 02ba4beff63500c38ae17c18b13581b477e77005 /tools | |
parent | 30fe30bcc9df26b036ae02f4d9e69f0d005339a3 (diff) | |
download | FreeBSD-src-6fb55612a3f4281874870c5569ed552bd9c83080.zip FreeBSD-src-6fb55612a3f4281874870c5569ed552bd9c83080.tar.gz |
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.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/bin/sh/expansion/arith12.0 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/expansion/arith12.0 b/tools/regression/bin/sh/expansion/arith12.0 new file mode 100644 index 0000000..cb7da3b --- /dev/null +++ b/tools/regression/bin/sh/expansion/arith12.0 @@ -0,0 +1,4 @@ +# $FreeBSD$ + +_x=4 y_=5 z_z=6 +[ "$((_x*100+y_*10+z_z))" = 456 ] |