svn commit: r234002 - stable/8/tools/regression/bin/sh/expansion
Jilles Tjoelker
jilles at FreeBSD.org
Sat Apr 7 20:56:29 UTC 2012
Author: jilles
Date: Sat Apr 7 20:56:29 2012
New Revision: 234002
URL: http://svn.freebsd.org/changeset/base/234002
Log:
MFC r232839: sh: Add a test for variables with underscores in arithmetic.
Added:
stable/8/tools/regression/bin/sh/expansion/arith12.0
- copied unchanged from r232839, head/tools/regression/bin/sh/expansion/arith12.0
Modified:
Directory Properties:
stable/8/tools/regression/bin/sh/ (props changed)
Copied: stable/8/tools/regression/bin/sh/expansion/arith12.0 (from r232839, head/tools/regression/bin/sh/expansion/arith12.0)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ stable/8/tools/regression/bin/sh/expansion/arith12.0 Sat Apr 7 20:56:29 2012 (r234002, copy of r232839, head/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 ]
More information about the svn-src-all
mailing list