Dan Jacobson <jidanni@deadspam.com> wrote:
> Should
> ${parameter:?word}
> Display Error if Null or Unset.
> have a buddy feature added to
> Display Error if Null or set.
Null implies set.
unset foo # foo is unset
foo='' # foo is set (and null)
foo=x # foo is set (and non-null)
> or would this be used so few that it wouldn't be worth, and the user
> could just do the test "x$bla" != x if needed anyway.
That's a different test. "test ${bla+x} != x" checks whether the
variable is set.
paul