From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12679 invoked by alias); 11 May 2011 15:53:41 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29225 Received: (qmail 22194 invoked from network); 11 May 2011 15:53:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at yahoo.co.uk does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1305128852; bh=85ijdoayHNXJhVAwr6PoZDHVXqeoa1HY+V9gA0M4qOY=; h=X-Yahoo-Newman-Id:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Received:In-reply-to:From:References:To:Subject:Date:Message-ID; b=HyyDeuCdEGyO2ZBKfDs6W9acbx7Peno0Bcbb9IaocUf5HrmSeIe0+CTP9tL3gA6ZdUvmD5SRhll9NA6WpWopRAuCNEvE7MAJO22s5q7iNL5USTZ9EksIRqI2ynOpDLl64iErDC/n5qlJlLLptS38JMivGsVrzDt3gX+85f7Ssms= X-Yahoo-Newman-Id: 923152.99786.bm@smtp142.mail.ukl.yahoo.com X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- X-YMail-OSG: XVGIRj8VM1noJ7cxaHGUUYu.Tecd6dI1MxEMfVaV_4Em3h. 3a15_Q22t_Jst0Lb5FKFiW1wka1o1MyA65uOtd.gW2p0gO2x7thqJtmIIFGp N5gZrJjnWiIFzJEvyr4r9ibrgpkz_A5Td0tIMMF2AW6KT5l.lkX58C3sbNnR VIv70KuciWKTjRr9Xt4Yyl1onBf8cqZoziqQNJIArXNcxm9Dhu0XyHo3HJr0 gMh9gm5GtQKXwu2UsGUXHX7Ct_c74K1blqUkSugIlXU4BfuR0kHnbmpmlx7_ xRPLENHW4rM2EaWGlQacch2wvl4Qzn4HIYBAp4pyeyVMZTUJC5vkIzLNY X-Yahoo-Newman-Property: ymail-3 In-reply-to: <110511080327.ZM23776@torch.brasslantern.com> From: Oliver Kiddle References: <1305118971-25617-1-git-send-email-mikachu@gmail.com> <110511080327.ZM23776@torch.brasslantern.com> To: zsh-workers@zsh.org Subject: Re: PATCH: expanding parameters like echo/print builtins Date: Wed, 11 May 2011 17:47:31 +0200 Message-ID: <1489.1305128851@thecus> Bart wrote: > I'd probably have done it with ${(%)arr:gs/%/%%} ... but I don't have > any objection to the (g) flag except to wonder if another choice for > the letter (g) might be better. The fact that it mnemes to GETKEY_ > isn't going to be very helpful to most users. Given that % is used for the (%) flag it might be logical to use \ here. Or would it just be too confusing. It'd probably need quoting, right? As for existing solutions, ${(Q)${(qqqq)var}//\\\\/\\} might do it. Oliver