a9bdd616f9
If a local variable has been made read-only, this should not prevent its removal when the function returns.
11 lines
71 B
Plaintext
11 lines
71 B
Plaintext
# $FreeBSD$
|
|
|
|
f() {
|
|
local x
|
|
readonly x=2
|
|
}
|
|
unset x
|
|
f
|
|
x=4
|
|
[ "$x" = 4 ]
|