From 3a5617a4770cb4e28a2ea69615f8a2a7f35b766f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 5 Dec 2010 21:13:10 +0000 Subject: unposted: NEWS: mention {START..END..STEP} enhancement. --- ChangeLog | 4 +++- NEWS | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 212ac68f0..0ed531513 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2010-12-05 Peter Stephenson + * unposted: NEWS: mention {START..END..STEP} changes. + * Mikael: 28474, 28478: Doc/Zsh/expn.yo, Src/glob.c, Test/D09brace.ztst: extended {START..END..STEP} syntax. @@ -13896,5 +13898,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.5139 $ +* $Revision: 1.5140 $ ***************************************************** diff --git a/NEWS b/NEWS index 5f76b5ab2..a20cc5263 100644 --- a/NEWS +++ b/NEWS @@ -26,6 +26,10 @@ The (D) flag in parameter expansion abbreviates directories in the substituted value. The (q-) flag does minimal shell quotation of arguments for maximum human readability of the result. +Numeric expansion with braces has been extended so that a step may be +given, as in {3..9..2}. The step may be negative as may the start and +end of the range (this is also new). + The glob qualifier P can be used to add a separate word before each match. For example, *(P:-f:) produces the command line `-f file1 -f file2 ...'. -- cgit 1.4.1