1
0
Fork 0
bash/tests/varenv20.sub
Daniel Baumann fa1b3d3922
Adding upstream version 5.2.37.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 06:49:21 +02:00

13 lines
226 B
Text

# 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