projects
/
platform
/
upstream
/
bash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported from ../bash-3.1.tar.gz.
[platform/upstream/bash.git]
/
tests
/
varenv.sh
diff --git
a/tests/varenv.sh
b/tests/varenv.sh
index
d6d763d
..
77776f9
100644
(file)
--- 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