Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: question about parameter expansion
- X-seq: zsh-users 20648
- From: Dmitri Vereshchagin <dmitri.vereshchagin@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: question about parameter expansion
- Date: Sat, 26 Sep 2015 21:08:27 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=6Qypf2cORh6MRVhK0d3Zow3SKjU6HqVXT7xTL+cJMUI=; b=cdAAV00MzRnhZLcoLNRof+VJ9MIuwiRpoxXPv6qAzW2k8SLhWQgyoj2THDWb1Ndnj8 WOK5lFUAMQXeV12yHX/xhTlTeiRQTI6oEikR4GRMYc6pLcoyuToc4kziQhGyAT5TyuNl wnjR9Nan1cWkHufLQqVVuc++g2d/IDkiAMoeEzZiUXso2jZxp+RiZO1plBMhemolmcUm 28ydCZ+TI3ecYoMbt0SMcvanPDQRm7RjebuyQ5aZEmtYPyYv0/mGPWgO0gb1Z1Ganp+h sO19lVhW63ABMoLY9DSRMFtpPkXvTITsUG3HGj3eDi2WxzMwzju81NOp7ckC5ivzOHG+ JhiA==
- In-reply-to: <CAHYJk3QegiGeqwiw834TVW+tFzvW5+HKV0cvopDyxOJnrZ6LYQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20150926101839.GA14021@gmail.com> <CAHYJk3QegiGeqwiw834TVW+tFzvW5+HKV0cvopDyxOJnrZ6LYQ@mail.gmail.com>
* Mikael Magnusson <mikachu@xxxxxxxxx> [2015-09-26 16:37]:
> You have to think outside the box for this one,
> bar=${${${+foo}#1}//0/baz}
I thought that there is more concise way like some sort of ${name+word}
counterpart. Thank you.
--
Dmitri Vereshchagin
Messages sorted by:
Reverse Date,
Date,
Thread,
Author