about summary refs log tree commit diff
path: root/NEWS
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-11-19 17:19:12 +0000
committerPeter Stephenson <pws@zsh.org>2015-11-19 17:19:12 +0000
commit4353bec49f5997f7581d8a33d52fd87deba57b6c (patch)
tree421a6e2d7b1cca0acdd4944ce99260e240626d5c /NEWS
parent5d0859a40113dcb57aba9ee877a0b531b6622584 (diff)
downloadzsh-4353bec49f5997f7581d8a33d52fd87deba57b6c.tar.gz
zsh-4353bec49f5997f7581d8a33d52fd87deba57b6c.tar.xz
zsh-4353bec49f5997f7581d8a33d52fd87deba57b6c.zip
37159: Update to NEWS and README
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS30
1 files changed, 30 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index bc14a8beb..3964da732 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,36 @@ CHANGES FROM PREVIOUS VERSIONS OF ZSH
 
 Note also the list of incompatibilities in the README file.
 
+Changes from 5.1.1 to 5.2
+-------------------------
+
+The new module zsh/param/private can be loaded to allow the shell
+to define parameters that are private to a function scope (i.e. are
+not propagated to nested functions called within this function).
+
+The parameter flag ${(P)...} is now more useful when it appears in
+a nested expansion.  For example,
+
+  typeset -A assoc=(one un two deux three trois)
+  name=assoc
+  print ${${(P)name}[one]}
+
+now prints "un".  In previous versions of the shell the value of the
+substitution was fully expanded on return from ${(P)name}, making
+associative array subscripting difficult.  As a side effect, flags
+for formatting appearing in the inner substitution now affect the
+substitution of the name (into "assoc" in this case), which is not
+normally useful: flags that should apply to the value must be in the
+outer substitution.
+
+The GLOB_STAR_SHORT option allows the pattern **/* to be shortened to
+just ** if no / follows. so **.c searches recursively for a file whose
+name has the suffix ".c".
+
+The effect of the WARN_CREATE_GLOBAL option has been significantly
+extended, so expect it to cause additional warning messages about
+parameters created globally within function scope.
+
 Changes from 5.1 to 5.1.1
 -------------------------