I understand the colon operator in bash that acts like a null, and I know it's used in parameter expansion, as well as being used other ways, but can someone explain this:
: ${SOMETHING='value'}
From experimentation I know that this sets the environment variable $SOMETHING
to 'value'
but why?
"Just because it does" is a valid answer but then please point me to the documentation for it (which I can't seem to find) or a proper name for this usage would be useful. I'm hoping there's a more enlightening explanation though.
:
built-in exists in bourne shell and ksh as well as bash.