In a bash script I cannot post here I see the following expression:
${MYVAR:+-x}
I understand the meaning of expressions like ${MYVAR:+OTHERVAR}
and ${MYVAR:-OTHERVAR}
, but an expression with both a plus-sign and a minus-sign. What does it mean, if anything?