diff options
Diffstat (limited to 'tests/attr2.sub')
-rw-r--r-- | tests/attr2.sub | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/attr2.sub b/tests/attr2.sub new file mode 100644 index 0000000..28d447c --- /dev/null +++ b/tests/attr2.sub @@ -0,0 +1,24 @@ +p=1 +export p + +export p=4 +declare -p p + +r=(1) +export r + +f() { export r=(4) ; } +f +declare -p r + +f() { export r='(5)' ; } +f +declare -p r + +f() { export -a r=(6) ; } +f +declare -p r + +f() { export -a r='(7)' ; } +f +declare -p r |