summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS72
1 files changed, 51 insertions, 21 deletions
diff --git a/NEWS b/NEWS
index bf8969b26..86b0bd40c 100644
--- a/NEWS
+++ b/NEWS
@@ -4,8 +4,35 @@ CHANGES FROM PREVIOUS VERSIONS OF ZSH
Note also the list of incompatibilities in the README file.
-Changes since 5.0.0
--------------------
+Changes from 5.0.7 to 5.0.8
+---------------------------
+
+- Global aliases can be created for syntactic tokens such as command
+ separators (";", "&", "|", "&&", "||"), redirection operators, etc.
+ Use at your own risk! The POSIX_ALIASES option is interpreted more
+ strictly to prevent expansion of these and other alias names containing
+ quotes, glob metacharacters, parameter references, etc.
+
+- There have been various further improvements to builtin handling
+ with the POSIX_BUILTINS option (off by default) for compatibility with
+ the POSIX standard.
+
+- 'whence -v' is now more informative, and 'whence -S' shows you
+ how a full chain of symbolic links resolves to a command.
+
+- The 'p' parameter flag now allows an argument to be specified
+ as a reference to a variable, e.g. ${(ps.$sep.)foo} to split $foo
+ on a string given by $sep.
+
+- Elements of the watch variable may now be patterns.
+
+- The logic for retrying history locking has been improved.
+
+- Some rationalisations have been made to the zsh/db/gdbm module that
+ should make it more useful and predictable in operation.
+
+Changes from 5.0.0 to 5.0.7
+---------------------------
- Numeric constants encountered in mathematical expressions (but not other
contexts) can contain underscores as separators that will be ignored on
@@ -14,69 +41,72 @@ Changes since 5.0.0
in output, e.g.
setopt cbases
zmodload zsh/mathfunc
- print $(( [#16_4] 2**32 - 1 )) $(( [#_3] 4 * atan(1.0) ))
-
+ print $(( [#16_4] 2**32 - 1 )) $(( [#_3] 4 * atan(1.0) ))
+
- "functions -T" turns on tracing for the specified function(s) only,
similar to "functions -t" except that tracing is turned off for any
functions called from the specified one(s) that don't also have the -t
or -T flag.
-
+
- The option FORCE_FLOAT has been added to force all arithmetic constants
to be treated as floating point. This is most useful locally within
functions or scripts performing floating point calculations.
-
-- The default $fpath/$FPATH is now designed always to include
- /usr/local/share/zsh/site-functions. This directory does not need to
+
+- The default $fpath/$FPATH is now designed to include
+ /usr/local/share/zsh/site-functions unless the installer has
+ specifically decided to use another path, i.e. regardless of
+ the standard installation location. This directory does not need to
exist. Sites that set an explicit site directory can put that in
/etc/zshenv as before. The intention of the new path element is to
increase the likelihood that locally added functions can be found with
- the shell running "out of the box", no matter how the shell was
- configured.
+ the shell running "out of the box", unless the shell has been
+ deliberately configured differently by the installer for some special
+ purpose.
- Individual pattern characters can be disabled. For example, to allow '^'
to be an ordinary character even if the option EXTENDED_GLOB is set, use
"disable -p '^'".
-
+
- The variable editing builtin vared can be given custom editing widgets
for initialisation and finishing.
-
+
- The line editor's capability for listening on file descriptors
additional to the terminal has been enhanced so that the handler for
such file descriptors can be a line editor widget. Previously the
handler always behaved as a standard shell function.
-
+
- Hooks for adding history (the function zshaddhistory and the
array zshaddhistory_functions) can return status 2 to indicate that
history is to be saved internally within the shell but not written.
-
+
- In file completion, the recursive-files style can be set to an array of
patterns to match against "$PWD/". In any matched location, it is
possible to complete files in arbitrarily deep subdirectories without
needing to type the directory prefix. See example in the zshcompsys
manual.
-
+
- The _user_expand completer now allows expansion functions in the
user-expand files to return a string in REPLY that will be used to name
the set of expansions returned.
-
+
- The parameter HISTORY_IGNORE may be set to a pattern which matches
lines in the internal history that are to be omitted from the history
file at file write time. This differs from history changes made in
the zshaddhistory hook or by the HIST_IGNORE_* options, all of which
take effect immediately on the internal history list itself.
-
+
- The parameter ZLE_RPROMPT_INDENT can be set to 0 to remove the space
before the right hand side of the screen (this causes problems with
some terminals). It is not special and is not set by default; the
effect in that case is as if it was 1, as in previous versions.
-
+
- If the option EXTENDED_GLOB is in effect, it is possible to force
globbing within conditional code using the [[ ... ]] syntax by flagging
that a certain string is a glob using the (#q) glob qualifier syntax.
The resulting glob is treated as a single argument. For example,
[[ -n *.c(#qN) ]] tests whether there are any .c files in the current
directory.
-
+
- In prompt strings, the %N(l.true.false) conditional (line length) and
the %N<..< and %N>..> truncation operators now accept negative values
of N, which count the remaining space to the opposite margin (positive
@@ -627,7 +657,7 @@ Further enhancements to new completion system:
different styles
- Many more supplied completions for standard commands which work out of
the box, and better handling of command line options/arguments which
- behave in the usual way
+ behave in the usual way
- $fpath now set up to use installed functions by default; functions
can be loaded just by `autoload -U compinit; compinit'
- Much improved handling of nested quoting and nested braces
@@ -985,7 +1015,7 @@ The shell will drop privileges when this option is unset by resetting its
euid to uid and its egid to gid.
The =number substitution for accessing the directory stack is changed to
-~number to allow =command substitution when a command name begins with a
+~number to allow =command substitution when a command name begins with a
digit.
<> is a redirection operator which opens the standard input for both