From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21457 invoked by alias); 26 Sep 2015 18:08:33 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20648 Received: (qmail 3248 invoked from network); 26 Sep 2015 18:08:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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== X-Received: by 10.152.22.138 with SMTP id d10mr3160695laf.85.1443290909793; Sat, 26 Sep 2015 11:08:29 -0700 (PDT) Date: Sat, 26 Sep 2015 21:08:27 +0300 From: Dmitri Vereshchagin To: Zsh Users Subject: Re: question about parameter expansion Message-ID: <20150926180827.GA2617@gmail.com> Mail-Followup-To: Zsh Users References: <20150926101839.GA14021@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) * Mikael Magnusson [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