zsh-users
 help / color / mirror / code / Atom feed
* Zsh 4.2.1
@ 2004-08-13 11:11 Peter Stephenson
  2004-08-13 12:13 ` Lloyd Zusman
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Peter Stephenson @ 2004-08-13 11:11 UTC (permalink / raw)
  To: Zsh users list

I've uploaded zsh 4.2.1 to ftp://ftp.zsh.org/pub/ .  If nobody finds
anything horrible before this afternoon I'll send it to Sourceforge as
well.  However, nothing serious has changed for a while, so I think it's
unlikely there are major problems.

Thanks to everyone who contributed.

I noticed the FAQ is out of date as far as the versions it talks about
are concerned.  I fixed this on the FTP site but not yet in the
distribution or on the zsh web site.

Here's the top of the NEWS file for the new version and the list of
known (minor) incompatbilities since 4.2.0 from the README.

[Hmm, are you allowed to say `more seamlessly'?  Shouldn't it be
something like `more closely resembling an object conceived of
metaphorically as lacking in seams'?]


Changes since zsh version 4.2.0
-------------------------------

- The autoload and related builtins take options -k and -z to indicate
  ksh or zsh autoloading style for given functions, making it possible
  to mix and match.

- Assignments to associative arrays can use the i and r index flags.
  For example,
    assoc[(i)alpha*]=bravo
  sets the value for the element whose key matches the pattern `alpha*';
    assoc[(r)activ*]=passive
  sets the value for the element whose current value matches the pattern
  `activ*'.

- The glob qualifier F indicates a non-empty directory.  Hence *(F)
  indicates all subdirectories with entries, *(/^F) means all
  subdirectories with no entries.

- fc -p and fc -P provide push/pop for the status of the shell's
  history (both internal and using the history file).  With automatic
  scoping (fc -ap) it becomes easy to use a temporary history in a
  function.  This has been added to the calculator function zcalc to make
  its internal history work more seamlessly.

- A new `try block' and `always block' syntax has been introduced
  to make it easier to ensure the shell runs important tidy-up code
  in the event of an error.  It also runs after a break, continue, or
  return, including a return forced by the ERR_RETURN option
  (but not an exit, which is immediate).  The syntax is:
    `{'  try-block-list `}' `always' `{' always-block-list `}'
  where no newline or semicolon may appear between `}' and `always'.
  This is compatible with all previous valid zsh syntax as an `always'
  at that point used to be a syntax error.  For example,
    { echo Code run in current shell } always { echo Tidy-up code }

- A new zle widget reset-prompt has been added to re-expand the current
  prompt.  Changes to the variable in use as well as changes in its
  expansions are both taken into account.  The same effect is now forced by
  a job change notification, making the %j prompt escape and %(j..) ternary
  expression more useful.

- The zftp module supports ports following the hostname in the normal suffix
  notation, `host:port'.  This requires IPv6 colon-style addresses to be
  specified in suitably quoted square brackets, for example:

  zftp open '[f000::baaa]'
  zftp open '[f000::baaa]:ftp'

  (the two are equivalent).

- Special traps, those that don't correspond to signals, i.e. ZERR, DEBUG
  and EXIT are no longer executed inside other traps.  This caused
  unnecessary confusion if, for example, both DEBUG and EXIT traps
  were set.  The new behaviour is more compatible with other shells.

- New option TRAPS_ASYNC which if set allows traps to run while the
  shell is waiting for a child process.  In sh/ksh
  compatibility mode the option is turned off by default and the option
  letter -T turns it on, for compatibility with FreeBSD sh.


Possible incompatibilities
---------------------------

Currently the only known incompatibilities between 4.2.0 and later
versions are minor:

IPv6 addresses must be specified in square brackets in the zftp module and
the function system built on top of the zftp module.

Special traps for pseudosignals ZERR, DEBUG and EXIT are no longer executed
inside other traps.  Users may well have assumed this was the case anyway
since the behaviour was not explicity documented.  See the NEWS file for
more detail.

By default, a maximum function depth of 4096 is now compiled into the
shell.  This may be altered during configuration; see `Function depth' in
INSTALL.


pws


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zsh 4.2.1
  2004-08-13 11:11 Zsh 4.2.1 Peter Stephenson
@ 2004-08-13 12:13 ` Lloyd Zusman
  2004-08-13 16:28   ` Dan Nelson
  2004-08-13 16:52 ` Mads Martin Joergensen
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: Lloyd Zusman @ 2004-08-13 12:13 UTC (permalink / raw)
  To: zsh-users

Peter Stephenson <pws@csr.com> writes:

> [Hmm, are you allowed to say `more seamlessly'?  Shouldn't it be
> something like `more closely resembling an object conceived of
> metaphorically as lacking in seams'?]

Well, you could always say "less seamfully". :)


-- 
 Lloyd Zusman
 ljz@asfast.com
 God bless you.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zsh 4.2.1
  2004-08-13 12:13 ` Lloyd Zusman
@ 2004-08-13 16:28   ` Dan Nelson
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Nelson @ 2004-08-13 16:28 UTC (permalink / raw)
  To: Lloyd Zusman; +Cc: zsh-users

In the last episode (Aug 13), Lloyd Zusman said:
> Peter Stephenson <pws@csr.com> writes:
> > [Hmm, are you allowed to say `more seamlessly'?  Shouldn't it be
> > something like `more closely resembling an object conceived of
> > metaphorically as lacking in seams'?]
> 
> Well, you could always say "less seamfully". :)

"better"

-- 
	Dan Nelson
	dnelson@allantgroup.com


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zsh 4.2.1
  2004-08-13 11:11 Zsh 4.2.1 Peter Stephenson
  2004-08-13 12:13 ` Lloyd Zusman
@ 2004-08-13 16:52 ` Mads Martin Joergensen
  2004-08-13 17:24   ` Peter Stephenson
  2004-08-13 17:01 ` Bart Schaefer
  2004-08-13 17:01 ` [7830] " Danek Duvall
  3 siblings, 1 reply; 7+ messages in thread
From: Mads Martin Joergensen @ 2004-08-13 16:52 UTC (permalink / raw)
  To: Peter Stephenson; +Cc: Zsh users list

* Peter Stephenson <pws@csr.com> [Aug 13. 2004 13:13]:
> I've uploaded zsh 4.2.1 to ftp://ftp.zsh.org/pub/ .  If nobody finds
> anything horrible before this afternoon I'll send it to Sourceforge as
> well.  However, nothing serious has changed for a while, so I think it's
> unlikely there are major problems.
> 
> Thanks to everyone who contributed.

Yes, from a humble user as well.

So I've run 4.2.1 everything seems fine from here. I've one question
though: how does it look with zsh and UTF-8 support. I noticed it's in
the TODO, so I wondered if someone has a rough timeline for when zsh
will be completely UTF-8 capable?

-- 
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
 and totally illogical, with just a little bit more effort?"
                                -- A. P. J.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zsh 4.2.1
  2004-08-13 11:11 Zsh 4.2.1 Peter Stephenson
  2004-08-13 12:13 ` Lloyd Zusman
  2004-08-13 16:52 ` Mads Martin Joergensen
@ 2004-08-13 17:01 ` Bart Schaefer
  2004-08-13 17:01 ` [7830] " Danek Duvall
  3 siblings, 0 replies; 7+ messages in thread
From: Bart Schaefer @ 2004-08-13 17:01 UTC (permalink / raw)
  To: Zsh users list

On Fri, 13 Aug 2004, Peter Stephenson wrote:

> [Hmm, are you allowed to say `more seamlessly'?  Shouldn't it be
> something like `more closely resembling an object conceived of
> metaphorically as lacking in seams'?]

You really mean "more nearly seamlessly", because if it were already 
seamless it couldn't get any more so.

> Changes since zsh version 4.2.0
> -------------------------------
> 
> - Assignments to associative arrays can use the i and r index flags.

It just occurred to me to hope that somewhere it's pointed out that if
more than one element matches the pattern, the one that gets replaced is
chosen effectively at random.  That's one of the reasons I didn't include
this capability when I originally wrote the associative array code.

Which means that after
    assoc[(i)alpha*]=bravo
it may be the case that
    print $assoc[(i)alpha*]
does not output "bravo", but
    print $assoc[(I)alpha*]
may print several things including "bravo".


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [7830] Zsh 4.2.1
  2004-08-13 11:11 Zsh 4.2.1 Peter Stephenson
                   ` (2 preceding siblings ...)
  2004-08-13 17:01 ` Bart Schaefer
@ 2004-08-13 17:01 ` Danek Duvall
  3 siblings, 0 replies; 7+ messages in thread
From: Danek Duvall @ 2004-08-13 17:01 UTC (permalink / raw)
  To: Peter Stephenson; +Cc: Zsh users list

On Fri, Aug 13, 2004 at 12:11:11PM +0100, Peter Stephenson wrote:

> [Hmm, are you allowed to say `more seamlessly'?  Shouldn't it be
> something like `more closely resembling an object conceived of
> metaphorically as lacking in seams'?]
>
> [ ... ]
> 
> - fc -p and fc -P provide push/pop for the status of the shell's
>   history (both internal and using the history file).  With automatic
>   scoping (fc -ap) it becomes easy to use a temporary history in a
>   function.  This has been added to the calculator function zcalc to make
>   its internal history work more seamlessly.

"This has been used in the calculator function zcalc to provide a better
integrated internal history mechanism."

?

Danek


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zsh 4.2.1
  2004-08-13 16:52 ` Mads Martin Joergensen
@ 2004-08-13 17:24   ` Peter Stephenson
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Stephenson @ 2004-08-13 17:24 UTC (permalink / raw)
  To: Zsh users list

Mads Martin Joergensen wrote:
> So I've run 4.2.1 everything seems fine from here. I've one question
> though: how does it look with zsh and UTF-8 support. I noticed it's in
> the TODO, so I wondered if someone has a rough timeline for when zsh
> will be completely UTF-8 capable?

No, nobody's had any time even to begin to do this properly yet.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-08-13 17:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-13 11:11 Zsh 4.2.1 Peter Stephenson
2004-08-13 12:13 ` Lloyd Zusman
2004-08-13 16:28   ` Dan Nelson
2004-08-13 16:52 ` Mads Martin Joergensen
2004-08-13 17:24   ` Peter Stephenson
2004-08-13 17:01 ` Bart Schaefer
2004-08-13 17:01 ` [7830] " Danek Duvall

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).