From 6c20c8ed2cb9ab69a1a57ccb2b9b79969a808321 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:38:56 +0200 Subject: Adding upstream version 5.2.15. Signed-off-by: Daniel Baumann --- tests/varenv20.sub | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/varenv20.sub (limited to 'tests/varenv20.sub') diff --git a/tests/varenv20.sub b/tests/varenv20.sub new file mode 100644 index 0000000..5fba8c4 --- /dev/null +++ b/tests/varenv20.sub @@ -0,0 +1,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 -- cgit v1.2.3