sh: Add already working test for local-readonly interaction.
This commit is contained in:
parent
70be6b9442
commit
cce13d6539
@ -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
|
||||
|
10
bin/sh/tests/builtins/local6.0
Normal file
10
bin/sh/tests/builtins/local6.0
Normal file
@ -0,0 +1,10 @@
|
||||
# $FreeBSD$
|
||||
|
||||
f() {
|
||||
local x
|
||||
readonly x=2
|
||||
}
|
||||
x=3
|
||||
f
|
||||
x=4
|
||||
[ "$x" = 4 ]
|
Loading…
Reference in New Issue
Block a user