Ravi Sir's Cards › AWS
${v:-x} vs ${v-x}?
This interview card answers: ${v:-x} vs ${v-x}? :- treats empty as missing. - only unset. Usually use — -.
Read card text
What this card says
What it is
:- treats empty as missing.
Why it matters
- only unset.
How / example
Usually use :-.
${v:-x}