I understand the colon operator in bash, which acts like null , and I know that it was used in parameter expansion , and is also used in other ways, but can someone explain this:
: ${SOMETHING='value'}
From the experiment, I know that this sets the $SOMETHING environment variable to 'value' , but why?
βJust because he does thisβ is a valid answer, but then please give me the documentation for it (which I cannot find), or a suitable name for this use would be helpful. I hope there will be a more enlightening explanation.
bash
Peter Coulton Sep 16 '11 at 12:14 2011-09-16 12:14
source share