zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: Add NEWS entry for array zipping operators.
@ 2014-08-12  4:25 Mikael Magnusson
  2014-08-12  8:37 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael Magnusson @ 2014-08-12  4:25 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: Add NEWS entry for array zipping operators.
  2014-08-12  4:25 PATCH: Add NEWS entry for array zipping operators Mikael Magnusson
@ 2014-08-12  8:37 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2014-08-12  8:37 UTC (permalink / raw)
  To: zsh-workers

On Tue, 12 Aug 2014 06:25:07 +0200
Mikael Magnusson <mikachu@gmail.com> wrote:
> 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?

I suppose we ought to try to be consistent with the older format, but
it's not massively important.

pws


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-12  8:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-12  4:25 PATCH: Add NEWS entry for array zipping operators Mikael Magnusson
2014-08-12  8:37 ` Peter Stephenson

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).