aaa=bbb=abc
echo"var:"${aaa:-"print this, instead of aaa, but not correct aaa"}echo"after:${LINENO}${aaa};"echo"var:"${aaa:="assign to aaa, if blank"}echo"after:${LINENO}${aaa};"aaa=1echo"var:"${aaa:+"this variable is not blank"}echo"after:${LINENO}${aaa};"aaa=echo"var:"${aaa:?"this variable is blank, exit"}echo"after:${LINENO}${aaa};"# var: print this, instead of aaa, but not correct aaa# after:4 ;# var: assign to aaa, if blank# after:6 assign to aaa, if blank;# var: this variable is not blank# after:9 1;# ./test.sh: line 11: aaa: this variable is blank, exit