mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-10 05:30:49 +02:00
commit bash-20151211 snapshot
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user