The POSIX shell (so includes bash) equivalent would be:
${FOO:-${BAR:-default}} See also the:
${FOO-${BAR-default}} Whichvariant which checks whether the variable is set or not instead of whether it resolves to the empty string or not (which makes a difference in the cases where a variable is set but empty).