Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2016 18:10:36 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r294582 - head/bin/sh/tests/builtins
Message-ID:  <201601221810.u0MIAaX6070442@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 ]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601221810.u0MIAaX6070442>