Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
question about parameter expansion
- X-seq: zsh-users 20643
- From: Dmitri Vereshchagin <dmitri.vereshchagin@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: question about parameter expansion
- Date: Sat, 26 Sep 2015 13:18:39 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=qUFxxOucnL5t62qtJcuCPllqo9anzgeLszWJxHMdycY=; b=sQAqt3FmwK+xuNjHoFnx1HE6sW7d03o1uybW62fh/TeQ3iqmGCNz18OHNP9zRJqN/S fIyd6OnDaEo7cRIQ/QQFKWNITyTVzVhiL02CcuRub+QDObG3nvqRZxiHhz58bUpdQu4s Kb/0GdGd2QL63/iu/bYEZGUyz/2srXkTZ+q3l7md+qr9+cPcrwIGZ7/4oImSDvhzEY4H 3wsHMPoh8HPPq8GWeMgjRW4nSZcSvNwV+3laXPT1QOc06rhB03nUZU1EpGHfnpOVWVE4 WW/MI3kVIcvBMuyWCruhsPFqJP9PkkbswpsVB4uh4LVIgy2O2xboII2d4m93FRusXCAC nFpw==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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