]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/varenv2.sub
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / varenv2.sub
CommitLineData
7117c2d2
JA
1fff()
2{
3 typeset i=0 x=10
4 echo "|$i|$x|"
5 export x
6 printenv x
7}
8
9fff2()
10{
11 echo "|$x|"
12 export x
13 printenv x
14}
15
16fff3()
17{
18 typeset i=0 x="${x-10}"
19 echo "|$i|$x|"
20}
21
22fff4()
23{
24 typeset i=0 x
25 x="${x-10}"
26 echo "|$i|$x|"
27}
28
29fff5()
30{
31 z=y typeset z
32 echo "|$z|"
33}
34
35fff
36x=10 fff
37x=1 fff
38x=4 fff2
39x=11 fff3
40echo after fff3: x=$x
41x=12 fff4
42
43fff5
44z=42 fff5