Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Zsh 5.0.6 releasd
- X-seq: zsh-announce 129
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh Announcement List <zsh-announce@xxxxxxx>
- Subject: Zsh 5.0.6 releasd
- Date: Thu, 28 Aug 2014 19:53:48 +0100
- List-id: Zsh Announcement List <zsh-announce.zsh.org>
- Mailing-list: contact zsh-announce-help@xxxxxxx; run by ezmlm
Version 5.0.6 of zsh has been uploaded to http://www.zsh.org/pub/ . It
will shortly be uploaded to Sourceforge, too.
Git users should note that owing to a problem at the Sourceforge
repository I haven't yet been able to push the version number change and
the tag, however the change is entirely predictable.
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