From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2629 invoked by alias); 23 Apr 2012 14:02:51 -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: 30444 Received: (qmail 8281 invoked from network); 23 Apr 2012 14:02:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.217.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; bh=+xBiLc05KhmY0xP3u++eyeaLxOT1qHQMLwHuAjJDcJA=; b=edO8YEFSNJCvHwG+/XC/i0pKP2Wikw3taj/nwstNPF88ic+zh4lWEkOyrwGur/wSzl rIK5gyPTrv9F41gnOiOMt0FcOp5eL3VePYsSkg9nlJo3pTanXGXHmXpZnVvLmWFJ+d1l 1iwXcAJijw3rG6dDag9sMmhlsU3yo3fiLyHQvO5H2ol1L8GcKPhmYql1XIJKsZNbX72E y9Dj/z+V/VyV5nwaJuZW4lpneHACvM+daxyjDdgDKXkjreVkQ70bnzh6CtgFwdTYndvM RG/YoI6NlGHHLndA11pIA/WFrejNbEJbEf1+1zNMi0mHlvn2gDMf4pg5qqLG9OOzEWqZ 7nTQ== From: Mikael Magnusson To: zsh-workers@zsh.org Subject: PATCH: NEWS: mention new array operations Date: Mon, 23 Apr 2012 15:54:26 +0200 Message-Id: <1335189266-10105-1-git-send-email-mikachu@gmail.com> X-Mailer: git-send-email 1.7.10.GIT In-Reply-To: <20120422192036.733be288@pws-pc.ntlworld.com> References: <20120422192036.733be288@pws-pc.ntlworld.com> --- NEWS | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NEWS b/NEWS index 2c05c63..ed0b567 100644 --- a/NEWS +++ b/NEWS @@ -87,6 +87,12 @@ Expansion (parameters, globbing, etc.) and redirection as a string, never a pattern, e.g. ${array[(ie)*]} looks for the index of the array element containing the literal string "*". +- The operators :| and :* in parameter expansion allow for array + subtraction and intersection in the form ${name:|array}. With the :| + operator, all entries in $name that are also in $array will be removed + from the substitution. Conversely for the :* operation only the + entries that are in both arrays will be substituted. + - Numeric expansions can have a positive or negative step e.g. "{3..9..2}". Negative start and end of ranges are also now supported. -- 1.7.10.GIT