Denis Vlasenko | 0e6f661 | 2008-02-15 15:02:15 +0000 | [diff] [blame] | 1 | # check that first assignment has proper effect on second one |
2 | |||||
3 | ( | ||||
4 | a=a A=$a | ||||
5 | echo a=$a A=$A | ||||
6 | ) | ||||
7 | (a=a A=$a; echo a=$a A=$A) | ||||
8 | (a=a A=$a echo a=$a A=$A) | ||||
9 | (a=a A=$a /bin/echo a=$a A=$A) | ||||
10 | |||||
11 | f() { echo a=$a A=$A; } | ||||
12 | |||||
13 | (a=a A=$a f) | ||||
14 | (a=a A=$a; f) |