zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: zsh-workers@zsh.org
Subject: PATCH: NEWS: mention new array operations
Date: Mon, 23 Apr 2012 15:54:26 +0200	[thread overview]
Message-ID: <1335189266-10105-1-git-send-email-mikachu@gmail.com> (raw)
In-Reply-To: <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


      reply	other threads:[~2012-04-23 14:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-20 19:20 PATCH: parameter substitution for exclusion by array Peter Stephenson
2012-04-21 21:05 ` Peter Stephenson
2012-04-21 21:48   ` Bart Schaefer
2012-04-21 22:06     ` Peter Stephenson
2012-04-22 12:55 ` Mikael Magnusson
2012-04-22 18:20   ` Peter Stephenson
2012-04-23 13:54     ` Mikael Magnusson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1335189266-10105-1-git-send-email-mikachu@gmail.com \
    --to=mikachu@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).