Imported from ../bash-3.1.tar.gz.
[platform/upstream/bash.git] / tests / varenv.sh
index d6d763d..77776f9 100644 (file)
@@ -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