I encountered ${ID:-}
in a shell script, but I am not sure what does this expression exactly do.
After a bit of googling I found that ${var}
and $var
are both the same. Such expression is useful when we want to expand expression like ${foo}bar
.
However I didn't find any source explaining expression like ${ID:-}
.
I would like to know about expression
${ID:-}