svn commit: r232839 - head/tools/regression/bin/sh/expansion
Jilles Tjoelker
jilles at FreeBSD.org
Sun Mar 11 22:12:05 UTC 2012
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.
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 ]
More information about the svn-src-all
mailing list