From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13508 invoked by alias); 9 Nov 2016 10:22:31 -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: 39885 Received: (qmail 27934 invoked from network); 9 Nov 2016 10:22:31 -0000 X-Qmail-Scanner-Diagnostics: from mail-ua0-f175.google.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(209.85.217.175):SA:0(0.0/5.0):. Processed in 0.529258 secs); 09 Nov 2016 10:22:31 -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=SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.217.175 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=A5MzLGIAHtOrvzbRGl8PMAQUAQhYXEsT8i9V4tnJyQQ=; b=iAYSOE8pTB4HqHpDwBYrt5sHwt08nEBl56bixr6Xa3w+obR1sHhLpeG782S9Bzl+NL RzZTHp6pVH7gBhSCz0q2MQZ8VytfOY9vXbkS0s7zG7odzMGqTDlPenYABO6hd4VHPnkj tGPbmHG8XEENtpt0uYaT66CDjMSMEau5o9rwLaDg6sU2rEqTa21i0Q6ZyrxtXT2Vekdr /7E5VC7CSy1GwF+G94UbeUDv5YGHnY2Dc3ooPEEi2nvlAWuTsvfln6DIP01rQr0YPCdx gJMPoV4rMM9TZ0yAurK6jTZh1orLSsOi5uiNpPGibUYhE8zDYhyFu/5USDhY3B5qgRnA LRZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=A5MzLGIAHtOrvzbRGl8PMAQUAQhYXEsT8i9V4tnJyQQ=; b=GVIghL2O3IbCE0hgy4zn8mOJDUG7BGKgoU71SbIapWk0DBGO4oUe80fumQQpHTym0D oSBwXSD/XfwR174gtga07WJMLCXmSeHhEuCwic6kcWQd0J+aqze2MzT/Dw7YWAlpqV0H kFNZZ44qUatVjQ9OzVjUUZRdlwB9oki0dAWxRKcFm6fT3IYTMuusSuJexBuUfxzbMno1 jyZe5KOj991uxHE8raZ+MUE1qTMLo1bFu6hwrVQopGZNreL7l5Xxp4StqT5AVDNm3TPh 9zXsxnOdSL+RxxiEiO5qiCJ1dSkPQY3o8I4x//A2aWA2V4YF2eSPHznsXvM/Bl3crQUq WhBg== X-Gm-Message-State: ABUngveHRQXyTBn3YxRTwycaiuhG/+EkSSFja6ObOPDCHZOKe9QJGJDRMshIifSa+Qd7QA== X-Received: by 10.176.5.39 with SMTP id 36mr9151283uax.71.1478673576228; Tue, 08 Nov 2016 22:39:36 -0800 (PST) From: Bart Schaefer Message-Id: <161108223934.ZM12195@torch.brasslantern.com> Date: Tue, 8 Nov 2016 22:39:34 -0800 In-Reply-To: <20161109051419.GA21675@fujitsu.shahaf.local2> Comments: In reply to Daniel Shahaf "Re: [PATCH] explicitly mention ${name:/pat/repl}" (Nov 9, 5:14am) References: <161108101043.ZM10631@torch.brasslantern.com> <20161109051419.GA21675@fujitsu.shahaf.local2> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: [PATCH] explicitly mention ${name:/pat/repl} MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 9, 5:14am, Daniel Shahaf wrote: } Subject: Re: [PATCH] explicitly mention ${name:/pat/repl} } } 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. It just means that if you quote the expansion, it won't necessarily be an array any more. There are too many ways this could happen to enumerate them all every time it might apply.