mirror of
https://github.com/sheumann/hush.git
synced 2024-11-11 01:06:22 +00:00
23 lines
307 B
Plaintext
23 lines
307 B
Plaintext
|
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
|