summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars/var_serial.tests
blob: 6b4a4cdf7f8c2ae6eee3f1e7cd6eb378b4faf349 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
a=a

b=b
c=c
# Second assignment depends on the first:
b=$a c=$b
echo Assignments only: c=$c

b=b
c=c
b=$a c=$b "$THIS_SH" -c 'echo Assignments and a command: c=$c'

b=b
c=c
b=$a c=$b eval 'echo Assignments and a builtin: c=$c'

b=b
c=c
f() { echo Assignments and a function: c=$c; }
b=$a c=$b f

echo Done