commit bash-20151211 snapshot

This commit is contained in:
Chet Ramey
2015-12-21 10:40:25 -05:00
parent 967625cd5b
commit 3f2135aaac
12 changed files with 1652 additions and 599 deletions
+8
View File
@@ -83,6 +83,14 @@ outside: outside
local: unset1 unset2
abc
abc
:1
:2
after: ----
global:1
global:2
after: --global--
after: ----
x = :1:2
a=z
a=b
a=z
+4
View File
@@ -217,5 +217,9 @@ ${THIS_SH} ./varenv6.sub
# variable declaration problems with arrays and readonly local variables
${THIS_SH} ./varenv7.sub
# variable visibility problems with process substitution subshells in
# redirections
${THIS_SH} ./varenv8.sub
# make sure variable scoping is done right
tt() { typeset a=b;echo a=$a; };a=z;echo a=$a;tt;echo a=$a
+14
View File
@@ -0,0 +1,14 @@
FOO=bar cat < <(echo $FOO:1; echo $FOO:2)
echo after: --${FOO}--
unset FOO
FOO=global
FOO=bar cat < <(echo $FOO:1; echo $FOO:2)
echo after: --${FOO}--
unset FOO
FOO=bar read x < <(echo -n $FOO:1; echo $FOO:2)
echo after: --${FOO}--
echo x = $x