Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

question about parameter expansion



Hello.

Here is a code sample I would like to rewrite using parameter expansion

  if (( ${+foo} )); then
    bar=
  else
    bar=baz
  fi

Cannot find it in the docs, but I suppose there is a way to do that.  Am
I right?

Thanks.

-- 
Dmitri Vereshchagin



Messages sorted by: Reverse Date, Date, Thread, Author