diff options
Diffstat (limited to 'tests/assoc10.sub')
-rw-r--r-- | tests/assoc10.sub | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/assoc10.sub b/tests/assoc10.sub new file mode 100644 index 0000000..9eef2ca --- /dev/null +++ b/tests/assoc10.sub @@ -0,0 +1,17 @@ +f() { declare -a a; declare -A a; echo -n "$FUNCNAME: " ; declare -p a; } +f + +f() { declare -A a; declare -a a; echo -n "$FUNCNAME: " ; declare -p a; } +f + +echo + +f() { declare -a a; echo -n "$FUNCNAME: " ; declare -p a; } +a=7 +f +echo -n 'main: '; declare -p a + +f() { declare -A a; echo -n "$FUNCNAME: " ; declare -p a; } +a=42 +f +echo -n 'main: '; declare -p a |