Imported from ../bash-3.1.tar.gz.
[platform/upstream/bash.git] / tests / varenv.sh
index 4f90761..77776f9 100644 (file)
@@ -194,3 +194,13 @@ set -a
 typeset FOOFOO=abcde
 
 printenv FOOFOO
+
+# test out export behavior of variable assignments preceding builtins and
+# functions
+$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