summaryrefslogtreecommitdiffhomepage
path: root/shell/ash_test/ash-vars/var5.tests
blob: 802e489bd8dbbf6279a580fd701602c0a8039b31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# check that first assignment has proper effect on second one

(
a=a A=$a
echo a=$a A=$A
)
(a=a A=$a; echo a=$a A=$A)
(a=a A=$a echo a=$a A=$A)
(a=a A=$a /bin/echo a=$a A=$A)

f() { echo a=$a A=$A; }

(a=a A=$a f)
(a=a A=$a; f)