Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh 5.0.6 released



[A similar announcement went to zsh-announce, so you may get this
twice.  That's been a bit unreliable for a long time so I'm sending it
here too.  If you do eventually get the zsh-announce version --- the git
issue I mentioned there has gone.]

Version 5.0.6 of zsh has been uploaded to http://www.zsh.org/pub/ .  It
has also appeared on Sourceforge, too: note the "latest file" link is
wrong as it points to the expanded documentation bundle.  You can't win:
last time I uploaded the documentation last and it decided to point to
it, so this time I uploaded the documentation first and it decided to
point to it.

Thanks to all the contributors.

Here's a chunk from the NEWS file.

- 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
  values of N still count the space used since the start of the prompt).
  In PS1 and PROMPT, this counts to the right margin, whereas in RPS1 and
  RPROMPT, it counts to the left margin (not to the opposite prompt).
 
- Another new prompt feature is the %. escape within time strings, for
  example %D{%H:%M:%S.%.}.  It provides zero-padded decimal fractions of
  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 is trimmed whereas the :^^ operator repeats the shorter
  array enough to match the longer array.

- The value of $? when a job becomes stopped is now the signal number plus
  128, for compatibility with other shells.  Note that different operating
  systems use different values e.g. for SIGTSTP, so it is not possible in
  portable scripts to detect stopped jobs by comparing to a fixed number.
  Also, the value of $pipestatus is now updated when a job stops, not just
  when it exits.

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



Messages sorted by: Reverse Date, Date, Thread, Author