From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3849 invoked by alias); 9 Nov 2016 05:16:40 -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: 39881 Received: (qmail 5629 invoked from network); 9 Nov 2016 05:16:40 -0000 X-Qmail-Scanner-Diagnostics: from out4-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.28):SA:0(0.0/5.0):. Processed in 0.508932 secs); 09 Nov 2016 05:16:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= mesmtp; bh=d+AcyCZSCmOceHrK7pP3ivBF32Q=; b=gCCeeLU0VOOHML3h0liFK k7CMwfOQ1CAqk6B8SZG20/rQWnP93roCLTBB2PykYr55+AMVDACKJyZsEIZcPHhN TgiA8LF6FUclsk+5pEBvjdb2Dk7SmuU41s9LHUfS6WoXVhFn73o1GvtzkMGP4arh BF4G5JrLaam0S/S8srtc3w= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=d+AcyCZSCmOceHrK7pP3ivBF32Q=; b=CuWa8Zi8U2JBJfCizwD+ fJMPbqjEIQPbwiOPieRAppPe+CmSxpRU+gdizVIEzkielHv09kV9A9zpMLV4fVCy u1taYBjapcf/Np+OUmih1qb1lz7jCV2YeIVpYlDSxgdX+/q6uIzrN3lrReyogyqy 7VfOOb3/SvGN+adhPLhCc2g= X-ME-Sender: X-Sasl-enc: RCwkNCv1/WuYlsNWw3JV0ffdGPgvL35+QV0iOfty2YKE 1478668591 Date: Wed, 9 Nov 2016 05:14:19 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: Re: [PATCH] explicitly mention ${name:/pat/repl} Message-ID: <20161109051419.GA21675@fujitsu.shahaf.local2> References: <161108101043.ZM10631@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <161108101043.ZM10631@torch.brasslantern.com> User-Agent: Mutt/1.5.23 (2014-03-12) Bart Schaefer wrote on Tue, Nov 08, 2016 at 10:10:43 -0800: > -The first `tt(/)' may be preceded by a `tt(:)', in which case the match > -will only succeed if it matches the entire word. Note also the > +If tt(${)var(name)tt(}) expands to an array value, the replacements act > +on each element individually. Quoting may affect this. Note also the "Quoting may affect this"? This leaves me wondering what the effect is and under what circumstances it happens. I assume this has to do with the «"${(@)foo}"» syntax? > effect of the tt(I) and tt(S) parameter expansion flags below; however, > the flags tt(M), tt(R), tt(B), tt(E) and tt(N) are not useful. > >