$ A=test
$ echo $A
test
$ : ${A:=testing}
$ echo $A
test
But...
$ : ${B:=hello}
$ echo $B
hello
So if A already has a value, the ": ${}" notation does not overwrite the
value. If A does not have a value (as demonstrated by B), then the value
is written.
-- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer
