November 2017
Intermediate to advanced
162 pages
4h 8m
English
Use the := operator when there is a need to force the immediate expansion of a variable. It results in the variable's contents being expanded immediately rather than when the variable is actually used, as follows:
T = "123"A := "${B} ${A} test ${T}"B = "${T} bval"T = "456"C = "cval"C := "${C}append"
At the end of this example, A will contain test 123, B will contain 456 bval, and C will be cvalappend. When A is expanded, B is not yet defined, so B is empty.
Read now
Unlock full access