From: Mikael Magnusson <mikachu@gmail.com>
To: zsh-workers@zsh.org
Subject: PATCH: Add NEWS entry for array zipping operators.
Date: Tue, 12 Aug 2014 06:25:07 +0200 [thread overview]
Message-ID: <1407817507-10949-1-git-send-email-mikachu@gmail.com> (raw)
Here's the blurb for :^ and :^^. I noticed that previous news entries
have an indented bullet format but the latest section doesn't, does
anyone care either way?
---
NEWS | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/NEWS b/NEWS
index cde1e7c..c21149a 100644
--- a/NEWS
+++ b/NEWS
@@ -78,6 +78,11 @@ second; by default milliseconds are shown, but the number of digits may
be indicated from 1 to 6, e.g. "%6.". (Note this is part of the
extensions to strftime() formats rather than basic prompt escapes.)
+The operators :^ and :^^ in parameter substitution allow for array
+zipping in the form ${name:^array}. With the :^ operator, all entries
+in $name and $array will be output in alternating order with the
+longer array trimmed, whereas the :^^ operator repeats the shorter
+array enough to match the longer array.
Changes between 4.2 and 5.0.0
-----------------------------
--
1.9.0
next reply other threads:[~2014-08-12 4:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-12 4:25 Mikael Magnusson [this message]
2014-08-12 8:37 ` Peter Stephenson
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=1407817507-10949-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).