blob: 5fba8c4c1f537f00b836432247a77871e95a09a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# tests of local variables with the same name as variables passed in the
# temporary environment
f() { local v=x; local -p; }
v=t f
f() { local v; declare -p v; }
v=t f
f() { local v=x; unset v; declare -p v; }
v=g
f
v=t f
|