svn commit: r294582 - head/bin/sh/tests/builtins
Jilles Tjoelker
jilles at FreeBSD.org
Fri Jan 22 18:10:37 UTC 2016
Author: jilles
Date: Fri Jan 22 18:10:36 2016
New Revision: 294582
URL: https://svnweb.freebsd.org/changeset/base/294582
Log:
sh: Add already working test for local-readonly interaction.
Added:
head/bin/sh/tests/builtins/local6.0 (contents, props changed)
Modified:
head/bin/sh/tests/builtins/Makefile
Modified: head/bin/sh/tests/builtins/Makefile
==============================================================================
--- head/bin/sh/tests/builtins/Makefile Fri Jan 22 18:09:25 2016 (r294581)
+++ head/bin/sh/tests/builtins/Makefile Fri Jan 22 18:10:36 2016 (r294582)
@@ -112,6 +112,7 @@ FILES+= local2.0
FILES+= local3.0
FILES+= local4.0
FILES+= local5.0
+FILES+= local6.0
.if ${MK_NLS} != "no"
FILES+= locale1.0
.endif
Added: head/bin/sh/tests/builtins/local6.0
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/bin/sh/tests/builtins/local6.0 Fri Jan 22 18:10:36 2016 (r294582)
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+f() {
+ local x
+ readonly x=2
+}
+x=3
+f
+x=4
+[ "$x" = 4 ]
More information about the svn-src-head
mailing list