diff options
Diffstat (limited to 'tests/varenv5.sub')
-rw-r--r-- | tests/varenv5.sub | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/varenv5.sub b/tests/varenv5.sub new file mode 100644 index 0000000..8ebfa36 --- /dev/null +++ b/tests/varenv5.sub @@ -0,0 +1,16 @@ +function foobar { + declare -rgA FOOBAR=([foo]=bar) + declare -p FOOBAR +} +foobar +declare -p FOOBAR + +unset -f foobar + +foobar() { + declare -rga FOOBAR2=([foo]=bar) + declare -p FOOBAR2 +} + +foobar +declare -p FOOBAR2 |