zsh-users
 help / color / mirror / code / Atom feed
* zsh 4.0.7 and 4.1.1 released
@ 2003-06-19 10:41 Peter Stephenson
  2003-06-20 10:19 ` Paul Johnson
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Stephenson @ 2003-06-19 10:41 UTC (permalink / raw)
  To: Zsh users list

I have uploaded zsh 4.0.7 and zsh 4.1.1 to ftp://ftp.zsh.org/pub/ .

For those who haven't been following development all that closely, 4.1.1
has been a long while in the gestation and should be relatively stable.
Unless you are particularly paranoid, it is probably reasonable to
upgrade from 4.0.

The uploads and announcments on sourceforge and freshmeat may take a
while longer since I'm not sure I'll have time to fight my way through
the forms, and I'm away next week (surprised?)  Meanwhile, please report
any problems.

Changes for 4.0.7 are mostly bug fixes, with some enhancements to
completion functions.  I didn't have time to trawl through the changelog
for a complete list.

The section of Etc/NEWS applying to 4.1.1 is below.

Thanks to everyone who has helped with development, debugging and bug
reporting.


New features between zsh versions 4.0 and 4.1.1
-----------------------------------------------

Configuration:
- upgraded to use autoconf post-2.50
- improved compatibility with other shells through shell options,
  builtin arguments and improved builtin option parsing

Syntax and builtins:
- new printf builtin
- `+=' to append to parameters which works for scalars, arrays and (with
  pairs) associative arrays.
- enhanced multiple parameter `for' loops:
    for key value in key1 value1 key2 value2 ...
  maintaining full compatibility with POSIX syntax

Add-on modules and functions:
- zsh/net/tcp module provides builtin interface to TCP through ztcp
  builtin.  Function suite for interactive and script use with expect-style
  pattern matching.
- zsh/net/socket module provides zsocket builtin.
- zcalc calculator function with full line editing.
- builtin interface to pcre library
- zsh/zselect module provides zselect builtin as interface to select
  system call

Completion system:
- general improvements to command and context support, low-level functions,
  display code.
- in verbose mode, matches with the same description are grouped
- highly configurable completions for values of specific parameters,
  specific redirections for specific commands
- support for bash completion functions (typically zsh native functions are
  more powerful where available)
- New completions provided for (some of these may be in later 4.0
  releases):  valgrind, tidy, texinfo, infocmp, Java classes, larch, limit,
  locale parameters, netcat, mysqldiff, mt, lsof, elinks, ant, debchange
  (dch), email addresses, file system types, Perforce, xsltproc.

Line editor:
- special parameters $PREDISPLAY, $POSTDISPLAY available in function
  widgets to configure uneditable text (for narrowing)
- recursive editing
- supplied widgets read-from-minibuffer, replace-string use these features
  (more intuitive prompting and argument reading than 4.0)
- access to killed text via $CUTBUFFER and $killring
- supplied highly configurable word widgets forward-word-match etc., can
  set what constitutes a word interactively or in startup script
  (implement bash-style behaviour, replacing previous bash-* word widgets)
- interface to incremental search via $LASTSEARCH
- better handling of keymaps in zle and widgets
- better support for output from user-defined widgets while zle is active
- tetris game which runs entirely in zle

Local internal improvements:
- disowned jobs are automatically restarted
- \u and \U print escapes for Unicode
- line numbers in error messages and $PS4 output are more consistent
- `=prog' expands only paths, no longer aliases for consistency
- job display in prompts; `jobs' command output can be piped
- prompts: new $RPROMPT2, %^, %j, %y, enhanced %{, %}, %_.
- rand48() function for better randomness in arithmetic
  (if the corresponding math library function is present)
- $SECONDS parameter can be made floating point via `typeset -F SECONDS'
  for better timing accuracy
- improvements to command line history mechanism
- many bugfixes

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


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************


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

* Re: zsh 4.0.7 and 4.1.1 released
  2003-06-19 10:41 zsh 4.0.7 and 4.1.1 released Peter Stephenson
@ 2003-06-20 10:19 ` Paul Johnson
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Johnson @ 2003-06-20 10:19 UTC (permalink / raw)
  To: Peter Stephenson; +Cc: zsh users list


Peter Stephenson said:

> I have uploaded zsh 4.0.7 and zsh 4.1.1 to ftp://ftp.zsh.org/pub/ .

I was hoping to track this down and fix it properly, but unfortunately I
won't have the time, so I thought it better just to report what I have
found.  If it seems to be simply a problem with my configuration then
don't worry about it, though 4.0.4 compiled without problem.

Apologies if this mailer wraps things badly, and thanks for all your work
and for a great shell.

    zsh configuration
    -----------------
    zsh version               : 4.1.1
    host operating system     : sparc-sun-solaris2.8
    source code location      : .
    compiler                  : gcc
    preprocessor flags        : -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    executable compiler flags :  -Wall -Wmissing-prototypes -O2
    module compiler flags     :  -Wall -Wmissing-prototypes -O2 -fPIC
    executable linker flags   :   -s
    module linker flags       :   -s -G
    library flags             : -lsocket -ldl -lnsl -lcurses -lm  -lc
    installation basename     : zsh
    binary install path       : /usr/local/home/pidjjq/opt/bin
    man page install path     : /usr/local/home/pidjjq/opt/man
    info install path         : /usr/local/home/pidjjq/opt/info
    functions install path    :
/usr/local/home/pidjjq/opt/share/zsh/4.1.1/functions
    See config.modules for installed modules and functions.

    gcc version 3.1 compiled on Solaris 2.6

I tried compiling 4.1.1 on Solaris 2.8 and hit the following error:

    gcc -c -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H
-DMODULE -Wall -Wmissing-prototypes -O2 -fPIC -o terminfo..o
terminfo.c
    In file included from
/var/spool/pkg/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.6/3.1/include/curses.h:783,
                     from terminfo.c:48:
    /usr/local/include/unctrl.h:57: syntax error before "char"
    /usr/local/include/unctrl.h:57: conflicting types for `unctrl'
    /var/spool/pkg/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.6/3.1/include/curses.h:297:
previous declaration of `unctrl'
    *** Error code 1
    make: Fatal error: Command failed for target `terminfo..o'
    Current working directory
/usr/local/home/pidjjq/g/build/zsh-4.1.1/Src/Modules
    *** Error code 1
    make: Fatal error: Command failed for target `modules'


/usr/local/include/unctrl.h:57 is:

    extern NCURSES_CONST char *unctrl(chtype);

and NCURSES_CONST is not defined.

/usr/local/include/ncurses.h, /usr/local/include/curses.h,
/usr/local/include/term.h and /usr/local/include/termcap.h have the
line:

    #define NCURSES_CONST /*nothing*/

/var/spool/pkg/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.6/3.1/include/curses.h:297
is the last line of:

    extern  char    *longname(void),        /* long name of terminal */
                    *termname(void),        /* effective terminal name */
                    *keyname(int),  /* name of token returned by wgetch() */
                    *slk_label(int),
                    erasechar(void),
                    killchar(void),
                    *unctrl(int);

but as a quick hack I defined the _UNCTRL_H guard and the compilation
completed:

make check gave the following errors, though:

cd Test ; make check
if test -n "gcc"; then \
  cd .. && DESTDIR= \
  make MODDIR=`pwd`/Test/Modules install.modules > /dev/null; \
fi
mkdir /usr/local/home/pidjjq/g/build/zsh-4.1.1/Test/Modules
mkdir /usr/local/home/pidjjq/g/build/zsh-4.1.1/Test/Modules/zsh
mkdir /usr/local/home/pidjjq/g/build/zsh-4.1.1/Test/Modules/zsh/net
for f in ./*.ztst; do \
  ../Src/zsh +Z -f ./ztst.zsh $f; \
done
./A01grammar.ztst: starting.
This test hangs the shell when it fails...
./A01grammar.ztst: all tests successful.
./A02alias.ztst: starting.
./A02alias.ztst: all tests successful.
./A03quoting.ztst: starting.
./A03quoting.ztst: all tests successful.
./A04redirect.ztst: starting.
./A04redirect.ztst: all tests successful.
./A05execution.ztst: starting.
./A05execution.ztst: all tests successful.
./A06assign.ztst: starting.
./A06assign.ztst: all tests successful.
./B01cd.ztst: starting.
./B01cd.ztst: all tests successful.
./B02typeset.ztst: starting.
./B02typeset.ztst: all tests successful.
./B03print.ztst: starting.
./B03print.ztst: all tests successful.
./B04read.ztst: starting.
./B04read.ztst: all tests successful.
./C01arith.ztst: starting.
./C01arith.ztst: all tests successful.
./C02cond.ztst: starting.
./C02cond.ztst: all tests successful.
./C03traps.ztst: starting.
This test takes at least three seconds...
This test, too, takes at least three seconds...
./C03traps.ztst: all tests successful.
./C04funcdef.ztst: starting.
./C04funcdef.ztst: all tests successful.
./D01prompt.ztst: starting.
./D01prompt.ztst: all tests successful.
./D02glob.ztst: starting.
./D02glob.ztst: all tests successful.
./D03procsubst.ztst: starting.
./D03procsubst.ztst: all tests successful.
./D04parameter.ztst: starting.
./D04parameter.ztst: all tests successful.
./D05array.ztst: starting.
./D05array.ztst: all tests successful.
./D06subscript.ztst: starting.
./D06subscript.ztst: all tests successful.
./E01options.ztst: starting.
*** /tmp/zsh.ztst.err.20526     Thu Jun 19 13:31:49 2003
--- /tmp/zsh.ztst.terr.20526    Thu Jun 19 13:31:49 2003
***************
*** 1,3 ****
! +(eval):3> fn
! +fn:0> print message
! +(eval):4> unsetopt xtrace
--- 1,3 ----
! trace (eval):3> fn
! trace fn:0> print message
! trace (eval):4> unsetopt xtrace
Test ./E01options.ztst failed: error output differs from expected as shown
above for:
  fn() { print message; }
  setopt xtrace
  fn
  unsetopt xtrace
  fn
Was testing: XTRACE option
./E01options.ztst: test failed.
./E02xtrace.ztst: starting.
*** /tmp/zsh.ztst.out.20839     Thu Jun 19 13:31:50 2003
--- /tmp/zsh.ztst.tout.20839    Thu Jun 19 13:31:50 2003
***************
*** 18,26 ****
  Tracing: function 2>file
  Tracing: source
  Tracing: source 2>file
! +(eval):7> print 'Tracing: ( builtin ) 2>file'
! +(eval):9> cat
! +(eval):11> print 'Tracing: { builtin } 2>file'
! +(eval):13> cat
! +(eval):15> print 'Tracing: do builtin done 2>file'
! +(eval):17> cat
--- 18,26 ----
  Tracing: function 2>file
  Tracing: source
  Tracing: source 2>file
! trace (eval):7> print 'Tracing: ( builtin ) 2>file'
! trace (eval):9> cat
! trace (eval):11> print 'Tracing: { builtin } 2>file'
! trace (eval):13> cat
! trace (eval):15> print 'Tracing: do builtin done 2>file'
! trace (eval):17> cat
Test ./E02xtrace.ztst failed: output differs from expected as shown above
for:
  set -x
  print 'Tracing: builtin'
  print 'Tracing: builtin 2>file' 2>xtrace.err
  cat <<<'Tracing: external'
  cat <<<'Tracing: external 2>file' 2>>xtrace.err
  ( print 'Tracing: ( builtin )' )
  ( print 'Tracing: ( builtin ) 2>file' ) 2>>xtrace.err
  ( cat <<<'Tracing: ( external )' )
  ( cat <<<'Tracing: ( external ) 2>file' ) 2>>xtrace.err
  { print 'Tracing: { builtin }' }
  { print 'Tracing: { builtin } 2>file' } 2>>xtrace.err
  { cat <<<'Tracing: { external }' }
  { cat <<<'Tracing: { external } 2>file' } 2>>xtrace.err
  repeat 1 do print 'Tracing: do builtin done'; done
  repeat 1 do print 'Tracing: do builtin done 2>file'; done 2>>xtrace.err
  repeat 1 do cat <<<'Tracing: do external done'; done
  repeat 1 do cat <<<'Tracing: do external done 2>file'; done 2>>xtrace.err
  xtf 'Tracing: function'
  xtf 'Tracing: function 2>file' 2>>xtrace.err
  . ./xt.in 'Tracing: source'
  . ./xt.in 'Tracing: source 2>file' 2>>xtrace.err
  set +x
  cat xtrace.err
Error output:
trace (eval):2> print 'Tracing: builtin'
trace (eval):3> print 'Tracing: builtin 2>file'
trace (eval):4> cat
trace (eval):5> cat
trace (eval):6> print 'Tracing: ( builtin )'
trace (eval):8> cat
trace (eval):10> print 'Tracing: { builtin }'
trace (eval):12> cat
trace (eval):14> print 'Tracing: do builtin done'
trace (eval):16> cat
trace (eval):18> xtf 'Tracing: function'
trace xtf:1> local regression_test_dummy_variable
trace xtf:2> print 'Tracing: function'
trace (eval):19> xtf 'Tracing: function 2>file'
trace xtf:1> local regression_test_dummy_variable
trace xtf:2> print 'Tracing: function 2>file'
trace (eval):20> . ./xt.in 'Tracing: source'
trace ./xt.in:1> print 'Tracing: source'
trace (eval):21> . ./xt.in 'Tracing: source 2>file'
trace ./xt.in:1> print 'Tracing: source 2>file'
trace (eval):22> set +x
Was testing: xtrace with and without redirection
./E02xtrace.ztst: test failed.
./V01zmodload.ztst: starting.
./V01zmodload.ztst: all tests successful.
./V02zregexparse.ztst: starting.
./V02zregexparse.ztst: all tests successful.
./Y01completion.ztst: starting.
./Y01completion.ztst: all tests successful.
./Y02compmatch.ztst: starting.
./Y02compmatch.ztst: all tests successful.
./Y03arguments.ztst: starting.
*** /tmp/zsh.ztst.out.21517     Thu Jun 19 13:32:42 2003
--- /tmp/zsh.ztst.tout.21517    Thu Jun 19 13:32:43 2003
***************
*** 2,8 ****
  line: {tst -o +o }{}
  line: {tst -o +o }{}
  MESSAGE:{no arguments}
! line: {tst +o }{}
! line: {tst +o -o }{}
! line: {tst +o -o }{}
  MESSAGE:{no arguments}
--- 2,10 ----
  line: {tst -o +o }{}
  line: {tst -o +o }{}
  MESSAGE:{no arguments}
! line: {tst -+}{}
! MESSAGE:{no arguments}
! line: {tst -+}{}
! MESSAGE:{no arguments}
! line: {tst -+}{}
  MESSAGE:{no arguments}
Test ./Y03arguments.ztst failed: output differs from expected as shown
above for:
 tst_arguments -+o
 comptest $'tst -\t\t\t\C-w\C-w+\t\t\t'
Was testing: option beginning with + and -.
./Y03arguments.ztst: test failed.
*** Error code 1 (ignored)
rm -rf Modules .zcompdump

-- 
Paul Johnson - paul@pjcj.net
http://www.pjcj.net


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

end of thread, other threads:[~2003-06-20 10:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-19 10:41 zsh 4.0.7 and 4.1.1 released Peter Stephenson
2003-06-20 10:19 ` Paul Johnson

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