zsh-users
 help / color / mirror / code / Atom feed
* question about parameter expansion
@ 2015-09-26 10:18 Dmitri Vereshchagin
  2015-09-26 13:37 ` Mikael Magnusson
  0 siblings, 1 reply; 24+ messages in thread
From: Dmitri Vereshchagin @ 2015-09-26 10:18 UTC (permalink / raw)
  To: Zsh Users

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


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2015-10-03 18:49 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-26 10:18 question about parameter expansion Dmitri Vereshchagin
2015-09-26 13:37 ` Mikael Magnusson
2015-09-26 17:41   ` ZyX
2015-09-26 17:57     ` Mikael Magnusson
2015-09-26 18:08   ` Dmitri Vereshchagin
2015-09-26 18:33     ` Mikael Magnusson
2015-09-26 18:57       ` Dmitri Vereshchagin
2015-09-26 21:11         ` Ray Andrews
2015-09-26 21:34           ` Bart Schaefer
2015-09-26 22:02             ` Ray Andrews
2015-09-27 16:58               ` Bart Schaefer
2015-09-27 18:29                 ` Ray Andrews
2015-09-27 18:43                   ` ZyX
2015-10-02 14:10                 ` Simon Ruderich
2015-10-02 16:35                   ` Ray Andrews
2015-10-02 19:07                     ` Simon Ruderich
2015-10-02 19:50                       ` Ray Andrews
2015-10-02 20:03                         ` latest manual Ray Andrews
2015-10-02 20:23                           ` Ray Andrews
2015-10-02 20:53                             ` Bart Schaefer
2015-10-02 21:55                               ` Ray Andrews
2015-10-03 18:49                                 ` Bart Schaefer
2015-10-03 10:01                               ` Simon Ruderich
2015-10-02 20:58                             ` Andrew Janke

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).