aboutsummaryrefslogtreecommitdiffstats
path: root/tests/varenv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/varenv.sh')
-rw-r--r--tests/varenv.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/varenv.sh b/tests/varenv.sh
index d6d763d..77776f9 100644
--- a/tests/varenv.sh
+++ b/tests/varenv.sh
@@ -201,3 +201,6 @@ $THIS_SH ./varenv1.sub
# more tests; bugs in bash up to version 2.05a
$THIS_SH ./varenv2.sub
+
+# make sure variable scoping is done right
+tt() { typeset a=b;echo a=$a; };a=z;echo a=$a;tt;echo a=$a