]>
Commit | Line | Data |
---|---|---|
7117c2d2 JA |
1 | fff() |
2 | { | |
3 | typeset i=0 x=10 | |
4 | echo "|$i|$x|" | |
5 | export x | |
6 | printenv x | |
7 | } | |
8 | ||
9 | fff2() | |
10 | { | |
11 | echo "|$x|" | |
12 | export x | |
13 | printenv x | |
14 | } | |
15 | ||
16 | fff3() | |
17 | { | |
18 | typeset i=0 x="${x-10}" | |
19 | echo "|$i|$x|" | |
20 | } | |
21 | ||
22 | fff4() | |
23 | { | |
24 | typeset i=0 x | |
25 | x="${x-10}" | |
26 | echo "|$i|$x|" | |
27 | } | |
28 | ||
29 | fff5() | |
30 | { | |
31 | z=y typeset z | |
32 | echo "|$z|" | |
33 | } | |
34 | ||
35 | fff | |
36 | x=10 fff | |
37 | x=1 fff | |
38 | x=4 fff2 | |
39 | x=11 fff3 | |
40 | echo after fff3: x=$x | |
41 | x=12 fff4 | |
42 | ||
43 | fff5 | |
44 | z=42 fff5 |