sh: Add already working test for local-readonly interaction.

This commit is contained in:
Jilles Tjoelker 2016-01-22 18:10:36 +00:00
parent 70be6b9442
commit cce13d6539
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=294582
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,10 @@
# $FreeBSD$
f() {
local x
readonly x=2
}
x=3
f
x=4
[ "$x" = 4 ]