From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13620 invoked by alias); 20 Dec 2010 20:16:28 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28542 Received: (qmail 17483 invoked from network); 20 Dec 2010 20:16:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at ruderich.org designates 78.46.69.5 as permitted sender) Date: Mon, 20 Dec 2010 21:16:10 +0100 From: Simon Ruderich To: zsh-workers@zsh.org Subject: [PATCH 1/2] Website Update: Add release notes for 4.3.11. Message-ID: <8ad568cc536998c9aeabbb5e4cbe6811b564577c.1292876058.git.simon@ruderich.org> References: <21986.1292864174@csr.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="=_zucker.schokokeks.org-13155-1292876176-0001-2" Content-Disposition: inline In-Reply-To: <21986.1292864174@csr.com> User-Agent: Mutt/1.5.21 (2010-10-31) --=_zucker.schokokeks.org-13155-1292876176-0001-2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, I just updated the website for 4.3.11. Please report any mistakes you find. Regards, Simon --- News/index.html | 9 +++ index.html | 2 +- releases.html | 168 +++++++++++++++++++++++++++++++++++++++++++++++++++= ++++ 3 files changed, 178 insertions(+), 1 deletions(-) diff --git a/News/index.html b/News/index.html index d6331a2..94d366f 100644 --- a/News/index.html +++ b/News/index.html @@ -25,6 +25,15 @@
+
2010-12-20 : Release 4= =2E3.11
+
Improved parameter expansion (${NAME:OFFSET} and ${NAME:OFFSET:LENGTH}= for +substrings and subarrays, (D) abbreviated directories, (Z) enhanced (z), +{3..9..2} step in brace expansion, (P) adds word before each match), +additional styles for zle_highlight ('suffix' for trailing /, 'special' for +invalid multibyte chars), new option HIST_LEX_WORDS to perform "correct" +splitting of history lines (not only on whitespace), multiple new POSIX_ +options to improve POSIX compliance and an improved SUN_KEYBOARD_HACK whic= h is +now called KEYBOARD_HACK.
2009-06-01 : Release 4= =2E3.10
Bug fixes and some minor improvements.
diff --git a/index.html b/index.html index b04616c..2faf02d 100644 --- a/index.html +++ b/index.html @@ -22,7 +22,7 @@
    Information -
  • News 2009-06-01 +
  • News 2010-12-20
  • About these pages
  • Release Notes
  • Useful links diff --git a/releases.html b/releases.html index 8adbc94..1867fe7 100644 --- a/releases.html +++ b/releases.html @@ -27,6 +27,174 @@
    +

    Changes between versions 4.3.10 and 4.3.11

    + +

    +Note also the list of incompatibilities in the README file. +

    + +

    +When the shell is invoked with the base name of a script, for example as +`zsh scriptname', previous versions of zsh have used the name directly, +whereas other shells use the value of $PATH to find the script. The +option PATH_SCRIPT has been added to provide the alternative behaviour. +This is turned on where appropriate in compatibility modes. +

    + +

    Parameters, globbing, etc.

    + +

    +Parameter expansion has been enhanced to provide the ${NAME:OFFSET} and +${NAME:OFFSET:LENGTH} syntax for substrings and subarrays present in +several other shells. OFFSET always uses zero-based indexing. The only +clash with existing zsh syntax occurs if OFFSET begins with an +alphabetic character or `&', which is not likely. +

    + +

    +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. +

    + +

    +The (Z) flag in parameter expansion is an enhanced version of the (z) +flag that takes an argument indicating how the string to be split +is treated. (Z:c:) parses comments as strings; (Z:C:) parses comments +and strips them; (Z:n:) treats newlines as ordinary whitespace: (z) +has always treated unquoted newlines as shell delimiters and turned them +into semicolons, though this was not previously documented. +

    + +

    +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 ...'. +

    + +

    +Regular expression matches now use the same variables for storing matched +components as shell pattern matching. The function system now provides the +function regexp-replace for replacing text using regular expressions. The +zle widget functions replace-string, replace-string-again, if defined with +regex in the name (e.g. "zle -N replace-regexp replace-string"), perform +regular expression matches. In replacement text \& and \1 have the +standard meaning. +

    + +

    Line editor and completion

    + +

    +The completion system now has a style path-completion. Setting this to +false inhibits completion of paths before the current path component, +e.g. /u/b/z no longer completes to /usr/bin/zsh. This is useful on systems +where this form of completion is pathologically slow due to network +performance. +

    + +

    +With the MULTIBYTE option, the line editor now highlights bytes in the +input that are not part of a valid character in the current locale in hex +as <XX> for hex digits X; highlighting is controlled by the "special" +keyword in the zle_highlight array. These can be distinguished from +unprintable Unicode characters which also use "special" highlighting as the +latter are always two or four bytes long, e.g. <XXXX>, <XXXXXXXX&= gt;. +

    + +

    +zle_highlight also controls highlighting of a removable completion +suffix, e.g. the "/" automatically appended to directories. This uses +the keyword "suffix". +

    + +

    +The line editor now sets the variable ZLE_LINE_ABORTED if there is +an error when editing the line. The following code can be used +to create a bindable editor widget to restore the aborted line: + recover-line() { LBUFFER=3D$ZLE_LINE_ABORTED RBUFFER=3D; } + zle -N recover-line +and then either bind recover-line to a key sequence or use +`M-x recover-line <RET>'. +

    + +

    +The parameter ZLE_STATE, available in user-defined line editor widgets, +gives information on the state of the line editor. Currently this is +whether the line editor is in insert or overwrite mode. +

    + +

    Miscellaneous options

    + +

    +The new shell option HIST_LEX_WORDS causes history lines read in from +a file to be split in the same way as normal shell lines, instead of +simply on whitespace. It's an option as although the result is more +accurate it can take a long time when the history size is large. +

    + +

    +The shell option MONITOR can be set in non-interactive shells, and also in +subshells (as created by surrounding commands with parentheses), turning on +job control for that subshell. The initial behaviour of a subshell is +still to turn job control off, however if the new POSIX_JOBS option is set +MONITOR remains active in subshells. +

    + +

    +The new shell option POSIX_CD, active in emulations of POSIX-based shells, +makes the cd builtin POSIX-compatible. +

    + +

    +The POSIX_JOBS option already referred to has various other +compatibility enchancements. +

    + +

    +The new shell option POSIX_STRINGS makes a null character in $'...' +expansion terminate the string, as is already the case in bash. This is +not particularly useful behaviour but may become a POSIX requirement. +

    + +

    +The new shell option POSIX_TRAPS causes the EXIT trap to behave in the same +way as in other shells, i.e. it is only run when the shell exits. +

    + +

    +The new shell option SOURCE_TRACE causes the shell to report files +containing shell code that the shell executes directly, i.e. startup files +or files run with the `source' or `.' builtins. +

    + +

    +The shell option SUN_KEYBOARD_HACK has been supplemented by a more general +mechanism: the KEYBOARD_HACK variable defines the character to be ignored. +

    + +

    Add-on modules and function

    + +

    +The module zsh/system has a new "zsystem" builtin whose subcommands perform +system level tasks. Currently "zsystem flock" performs advisory file +locking (for aficionados, this uses the fcntl() system call so works over +the network on Linux). This is a particularly convenient way of locking +files for the length of a subshell. "zsystem supports flock" provides a +test for this feature. +

    + +

    +There is now a function system for recording and restoring recently +entered directories in a persistent fashion, with support in completion +and (if explicitly installed) dynamic directory expansion. See the +entry for cdr in the zshcontrib manual page. +

    Changes between versions 4.3.9 and 4.3.10

    --=20 1.7.3.4 --=20 + privacy is necessary + using gnupg http://gnupg.org + public key id: 0x92FEFDB7E44C32F9 --=_zucker.schokokeks.org-13155-1292876176-0001-2 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAEBCAAGBQJND7mJAAoJEJL+/bfkTDL5y5MP/3M1gvomIrlf80RuM5Yup3GP SdfEPnLmDzcqIMWw37C5gihyKIdyD2Hxv2NC8fhUotWiT0cIboysuPm6vxygYyMw wXVNNmcIKoQgjsf3S7/EvQJYDBRu6ZSGywVToV7ogFZ2e22ogA/pLClnWUh7+HuD Kid9qL3HxSdVgx/yC7sphSptRAyn5ycPMvcWxIIqLeFhg5u+YdW7qHIAFgn79Z2P hHMacPxZ5gBJ5dedIin8usK5i8vx3JvW+5OPCnQnoH6eBNEyd9S2c3PWyEQD3JC5 JuSxqx67yoNIzwFAxnItPlfLwGsUUbp/HMqVB9R+411SRt708b0LgCypsg4o8kPF kcpQLIA1Jamqw+x9tQDPxTssZ3DZBSIsLgrmEDcX/el71XSk8ltoQdLguyyveU6P ZTOGC6kjtFSOgmT0pPoWKE8AxwM5bwkBW1s/oDTgvZe6U1YKBCHEOv8Y6eH3f7+W FZc515RdKO3rXDVZSmXwWBxNFIPXZP9eSkiJqX3rWAruogpgeJKKoVhXhzEfPgn9 Ap8UgkwWWhBqtMfN6O5s3WQisLBeU9I+9uHjxyrkzBLJVSLF1jJi1KJujL5lPLy6 LWsBaZxWhc4bX6Z6hTW89Fu7iay4WzmqP2owrzV1e4R9Hb9H986JHWvkP9s71n0K nr+FjPQVLP4y8ZY1/MOW =onyt -----END PGP SIGNATURE----- --=_zucker.schokokeks.org-13155-1292876176-0001-2--