From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16068 invoked by alias); 12 Aug 2014 04:25:24 -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: 32985 Received: (qmail 22415 invoked from network); 12 Aug 2014 04:25:22 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=enaQ2r2W8XuIuerCIaLurWNlJ3GNfKRILTXsLHnY1Wc=; b=DuN4ASItRsPQegpg1D+mip5oLz5bRXYI3vaNW6o69YD3gzgjTqYW/F4GmDCNmOAX2j fbsQ5pycXR7txsIGYdMMuaKm7JmobJI4aQXXDv/UuGo0/3X2k+mJCSCwXZDBoDJU+Po0 M0JfYCBRzB3JdSIbewZ4sJX6FypiRT1NXHCmFbzV/tl+9iI8+xmCv4GNgLQCbNBoO/rd m2VBGb0vla7Bfw6UD7i+IWi/sAV11nfJtmCWEj/J4/kUFEjAEDtWoqL+LHir0lB3aODa 2tZGfHzZW8D/ZRtt9CWEF0ub+xrn2tnoVkPSgW5IaDd6a3XtProzzsTw4Z17jjmXvBFr +0eg== X-Received: by 10.112.44.129 with SMTP id e1mr113038lbm.78.1407817514624; Mon, 11 Aug 2014 21:25:14 -0700 (PDT) From: Mikael Magnusson To: zsh-workers@zsh.org Subject: PATCH: Add NEWS entry for array zipping operators. Date: Tue, 12 Aug 2014 06:25:07 +0200 Message-Id: <1407817507-10949-1-git-send-email-mikachu@gmail.com> X-Mailer: git-send-email 1.9.0 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