zsh-workers
 help / color / mirror / code / Atom feed
* 4.1.0-dev-2
@ 2001-09-27 12:39 Peter Stephenson
  2001-09-27 14:20 ` Failure of Test/V01 in 4.1.0-dev-2 Geoff Wing
  0 siblings, 1 reply; 11+ messages in thread
From: Peter Stephenson @ 2001-09-27 12:39 UTC (permalink / raw)
  To: Zsh hackers list

I've uploaded .gz and .bz2 files of 4.1.0-dev-2.  Here's the changelog if
you're wondering whether to fetch it.


2001-09-27  Peter Stephenson  <pws@csr.com>

	* Config/version.mk, Completion/Unix/Command/.distfiles,
	Doc/Zsh/.distfiles, Functions/Misc/.distfiles,
	Functions/Zle/.distfiles, Test/.distfiles: version 4.1.0-dev-2,
	with the usual fix for the list of distributed files.

2001-09-25  Bart Schaefer  <schaefer@zsh.org>

	* 15871, 15872: Src/subst.c, Test/D04parameter.ztst: Equivalence
	of `...` and $(...) in parameter substitutions, e.g. ${(e)...}.

2001-09-25  Sven Wischnowsky  <wischnow@zsh.org>

	* 15868, 15869: Src/text.c: job text building code couldn't handle
	empty sublists (as in `coproc || test')

2001-09-25  Clint Adams  <clint@zsh.org>

	* 15866: Completion/Unix/Command/_ssh:
	complete v2 ciphers after -o Ciphers=,
	complete protocol numbers after -o Protocol.

2001-09-24  Bart Schaefer  <schaefer@zsh.org>

	* 15865: Doc/Zsh/builtins.yo: Fix ancient `print -z' doc bug
	(see zsh-workers/214 (yes, really, 214)).

	* 15864: Doc/Zsh/params.yo: Document that assignment to TERM
	is necessary to re-initialize the terminal.

	* users/4269: Src/hist.c: Detect and reject corrupted history
	files ('\0' bytes) rather than consuming all available memory.

2001-09-24  Peter Stephenson  <pws@csr.com>

	* Src/builtin.c, Src/exec.c: Unwind function calls before exiting
	shell from exit command to allow EXIT traps to run.

2001-09-21  Andrew Main (Zefram)  <zefram@zsh.org>

	* Doc/Zsh/contrib.yo, Functions/Misc/tetris: Tetris game for ZLE.

2001-09-20  Bart Schaefer  <schaefer@zsh.org>

	* 15847: Src/init.c: Avoid using the word "termcap" in an error
	message when it may in fact have been curses or terminfo that
	failed.

2001-09-19  Peter Stephenson  <pws@csr.com>

	* 15846: aczsh.m4: Fix attempt to restore LDFLAGS from non-existent
	saved value when testing RTLD_GLOBAL.

2001-09-18  Wayne Davison  <wayned@users.sourceforge.net>

	* 15836: Src/builtin.c: Further modify the "fc -l" code to tolerate
	out-of range values.

2001-09-17  Wayne Davison  <wayned@users.sourceforge.net>

	* 15837: Src/Zle/zle_hist.c: Fixed incremental search in vared
	(without -h) so that it doesn't access the history.

2001-09-16  Bart Schaefer  <schaefer@zsh.org>

	* Akinori MUSHA: 15815: Completion/BSD/Command/_bsd_pkg: More
	detailed completion of package options on different BSD flavors.

2001-09-15  Bart Schaefer  <schaefer@zsh.org>

	* 15812: Doc/Makefile.in, Doc/Zsh/zle.yo: Include mod_tcp.yo in
	MODDOCSRC.  Cross-reference parameters used by ZLE.

2001-09-14  Wayne Davison  <wayned@users.sourceforge.net>

	* 15809: Src/hist.c: With HIST_NO_STORE, don't ignore what looks like
	a history command if we're really going to call a user-defined shell
	function.

2001-09-13  Wayne Davison  <wayned@users.sourceforge.net>

	* 15806: Src/builtin.c, Src/hist.c: Fixed "r" with an empty history
	and the non-storing nature of "r" with HIST_NO_STORE.

2001-09-12  Oliver Kiddle  <opk@zsh.org>

	* 15792: Doc/Zsh/manual.yo, Doc/Zsh/metafaq.yo: update url
	references to http://zsh.sunsite.dk/

2001-09-11  Oliver Kiddle  <opk@zsh.org>

	* 15781: Completion/Unix/Command/.distfiles,
	Completion/Unix/Command/_samba: new completion for samba tools

	* unposted: Completion/Zsh/Context/_subscript: complete ascii
	character class added in 15765

2001-09-10  Clint Adams  <clint@zsh.org>

	* 15783: Doc/Zsh/builtins.yo, Doc/Zsh/mod_tcp.yo,
	Doc/Zsh/.distfiles: document ztcp builtin.

	* 15780: Src/Modules/tcp.c: tweak variable name.

	* 15779: Src/Modules/tcp.c: add -d (specify fd)
	for ztcp.

	* unposted: Src/Modules/tcp.c:
	don't segfault on -a if the session table is empty,
	and other fixes.  

	* 15772: Src/Modules/tcp.c: add -t (test) for ztcp.

2001-09-09  Bart Schaefer  <schaefer@zsh.org>

	* David Lebel: 15742: zshconfig.ac: Shared object linkage on
	OpenBSD.

2001-09-09  Clint Adams  <clint@zsh.org>

	* 15770: Src/Modules/tcp.c, Src/Modules/tcp.h:
	add -a (accept) for ztcp.

	* 15768: Src/Modules/tcp.c:
	take service names in lieu of numbers,
	and stuff fd numbers into $REPLY instead
	of printing them.

	* 15766: Src/Modules/tcp.c, Src/Modules/tcp.h:
	add -l (listen) for ztcp.

2001-09-08  Clint Adams  <clint@zsh.org>

	* 15765: Doc/Zsh/expn.yo, Src/pattern.c:
	introduce [:ascii:] class.

	* 15763: Src/Modules/tcp.c: add -v (verbose)
	for ztcp.

	* 15762: Src/Modules/tcp.c, Src/Modules/tcp.h,
	Src/Modules/tcp.mdd, Src/Modules/zftp.c:
	introduce ztcp builtin.

2001-09-06  Clint Adams  <clint@zsh.org>

	* 15740: Completion/compaudit: don't whine about
	/usr/local/**/*(/) in $fpath being root:staff 2755
	if we think we're on Debian.

	* 15739: Completion/compaudit: use getent instead
	of /etc/group if possible.

2001-09-03  Andrew Main (Zefram)  <zefram@zsh.org>

	* 15734: Doc/Zsh/zle.yo, Src/Zle/zle_hist.c, Src/Zle/zle_keymap.c,
	Src/Zle/zle_main.c, Src/Zle/zle_misc.c, Src/Zle/zle_params.c,
	Src/Zle/zle_thingy.c: zle -K option to select a keymap, and zle
	KEYMAP parameter to examine the current selection.

2001-08-28  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>

	* 15722: Completion/Unix/Command/_sh: handle zsh options.

	* 15720: Functions/Misc/zmv: use ${(e)...} as suggested by
	Bart; fix problem with option arguments with special characters;
	more consistency with shifting arguments; fix verbose mode
	output with backslashes.

2001-08-28  Sven Wischnowsky  <wischnow@zsh.org>

	* 15717: Src/subst.c, Src/Modules/parameter.c,
	Src/Zle/zle_misc.c: handle possible NULL pointer returned from
	bufferwords()

2001-08-27  Wayne Davison  <wayned@users.sourceforge.net>

	* 15713: Completion/Redhat/Command/_rpm: added package-specification
	options to the --verify command.

2001-08-27  Bart Schaefer  <schaefer@zsh.org>

	* 15708: Src/lex.c: Fix PS2 prompt when there's an open double
	quote inside an open braced-parameter expression.

2001-08-25  Bart Schaefer  <schaefer@zsh.org>

	* 15707: Src/init.c: Fix history crash caused by re-entering
	loop() when the `precmd' shell function uses `source' or `.'.

	* 15702: Doc/Zsh/expn.yo: Alphabetize (mostly) parameter flag
	descriptions; fix a couple of typos; parameter rule #12.
	
2001-08-24  Sven Wischnowsky  <wischnow@zsh.org>

	* 15705: Src/Zle/complete.c: test if hash table pointer is NULL
	to avoid SEGV with compstate=()

2001-08-22  Clint Adams  <clint@zsh.org>

	* 15683: Completion/Unix/Command/.distfiles,
	Completion/Unix/Command/_links: completion for
	links(1).

2001-08-22  Bart Schaefer  <schaefer@zsh.org>

	* 15676: Test/A01grammar.ztst, Test/A05execution.ztst,
	Test/C02cond.ztst, Test/D04parameter.ztst, Test/E01options.ztst,
	Test/E02xtrace.ztst, Test/Y01completion.ztst,
	Test/Y03arguments.ztst:  Tweak %prep sections to exit sooner on
	certain failures (by adding blank lines).  Other whitespace-only
	changes.  Avoid [[ ! -r ... ]] test when running as root, as it
	always fails in that case.  Test `typeset -ft' (function trace).
	
	* 15608: Completion/Zsh/Command/_cd: Don't treat numbers as
	cd-able vars.

2001-08-21  Clint Adams  <clint@zsh.org>

	* 15675: Src/Builtins/rlimits.awk: handle case
	where RLIM_NLIMITS is set to a number within an
	enum.

2001-08-21  Bart Schaefer  <schaefer@zsh.org>

	* users/4157 (plus workers/15674): Completion/Unix/Command/_man:
	Better handling of section numbers.

2001-08-20  Sven Wischnowsky  <wischnow@zsh.org>

	* 15669: Completion/Base/Completer/_approximate,
	Src/Zle/compcore.c: undo most of 15650, do that in shell code

2001-08-18  Bart Schaefer  <schaefer@zsh.org>

	* 15617: Src/exec.c: Fix exit status of zsh -fc '! command'.

2001-08-17  Adam Spiers  <adam@spiers.net>

	* unposted: Functions/Prompts/prompt_adam2_setup: eliminate
	horrible inefficiencies resulting from avoidable fork()s

2001-08-17  Sven Wischnowsky  <wischnow@zsh.org>

	* 15653: Completion/Base/Core/_main_complete: make insert-tab
	really default to `true'

	* 15650: Completion/Unix/Type/_path_files, Src/Zle/compcore.c: fix 
	test for expanded paths in _path_files; more intelligently move
	glob flags (in particular those added by _approximate) after a
	tilde

2001-08-16  Peter Stephenson  <pws@csr.com>

	* 15647: Functions/Misc/zcalc:  with output not showing the
	base (e.g. [##16]) reuse of previous values didn't work.

2001-08-16  Sven Wischnowsky  <wischnow@zsh.org>

	* 15639: Src/text.c: fix bug for output of unquoted here-docs and
	-strings with special characters

	* 15638: Completion/Base/Completer/_approximate: make sure that
	there is one of the group-options before using it

2001-08-15  Geoff Wing  <gcw@zsh.org>
	
	* 15621: Src/Zle/zle_refresh.c: display of status line was being
	mucked up; also fix continuation markers "<...." and "<....>"

	* unposted: Src/Zle/zle_refresh.c: fix possible seg fault on a
	screen height shrink

2001-08-15  Adam Spiers  <adam@spiers.net>

	* unposted: Doc/Zsh/expn.yo: mention the word `greedy' in the
	docs for the S flag, to make it easier to find for those used to
	Perl-speak.

	* unposted: Doc/Zsh/compsys.yo: add missing docs for cache-policy
	style.

	* 15630: Completion/Redhat/Command/_rpm: update caching policy
	for newer versions of rpm.

2001-08-14  Clint Adams  <clint@zsh.org>

	* 15629: Completion/Unix/Command/_zip: unzip -Z
	should behave the same as zipinfo.

2001-08-13  Bart Schaefer  <schaefer@brasslantern.com>

	* 15613 (plus unposted additions): Test/B02typeset.ztst: Tests for
	correct behavior of typeset options and arguments.

	* 15611: Src/builtin.c, Test/D06subscript.ztst: Fix crash bug when
	assigning to array elements in a function in the arguments of
	typeset or local.  Change test for new typeset restrictions.

2001-08-13  Sven Wischnowsky  <wischnow@zsh.org>

	* 15615: Completion/Unix/Type/_path_files: -[12n] options don't
	get arguments

2001-08-12  Bart Schaefer  <schaefer@zsh.org>

	* Peter Breitenlohner: 14956: Makefile.in, Doc/Makefile.in,
	Test/Makefile.in: Fix various interactions of DESTDIR and use of
	multiple build targets, e.g. "make DESTDIR=/tmp all check info".

2001-08-09  Oliver Kiddle  <opk@zsh.org>

	* 15606: Completion/Unix/Command/_dd: add exclusion lists

	* 15599: Completion/Unix/Command/_user_admin: detect redhat or
	mandrake before completing redhat's extensions

2001-08-08  Wayne Davison  <wayned@users.sourceforge.net>

	* 15596: Src/Zle/compmatch.c, Src/Zle/compresult.c,
	Src/Zle/computil.c: Silence some compiler warnings.

2001-08-08  Sven Wischnowsky  <wischnow@zsh.org>

	* 15597: Completion/Unix/Command/_dd, Doc/Zsh/compsys.yo,
	Src/Zle/computil.c: follow-up to 15588; add -w option to
	_values (look at all words); change _dd back

2001-08-07  Wayne Davison  <wayned@users.sourceforge.net>

	* users/4092: Src/hist.c: Don't lose the last history line
	when a signal causes us to rewrite the history file.

2001-08-07  Oliver Kiddle  <opk@zsh.org>

	* 15594: Completion/Zsh/Context/_value,
	Completion/Zsh/Command/_enable: use _x_display when setting
	$DISPLAY and fix substitution mistake in enable completion

	* 15590: Completion/Zsh/Context/_equal: after 15586, we no
	longer want to complete aliases in the equal context

2001-08-07  Sven Wischnowsky  <wischnow@zsh.org>

	* 15588: Completion/Base/Completer/_approximate,
	Completion/Base/Utility/_describe, Completion/Unix/Command/_dd:
	make _dd not use already used specs; fix for selecting stuff to
	complete in _describe; fix for correction and _describe with
	grouped lists

2001-08-07  Peter Stephenson  <pws@csr.com>

	* 15586: Src/subst.c, Doc/Zsh/expn.yo: remove =alias expansion,
	so `=' only expands pathnames.  Hooray!

	* 15585: Doc/Zsh/contrib.yo, Functions/Zle/bash-down-case-word,
	Functions/Zle/bash-up-case-word: two new Zle functions with
	bash-style word boundaries.

	* 15583: Config/installfns.sh: ignore CVS directories for
	all function installations, not just with subdirectories.

2001-08-07  Sven Wischnowsky  <wischnow@zsh.org>

	* 15584: Src/parse.c: increment zwc file version (which means
	changing the magic number)

2001-08-06  Oliver Kiddle  <opk@zsh.org>

	* 15574: Completion/Unix/Command/_cvs, Completion/Unix/Command/_dd,
	Completion/Unix/Command/_dict, Completion/Unix/Command/_grep,
	Completion/Unix/Command/_loadkeys, Completion/Unix/Command/_ls,
	Completion/Unix/Command/_patch, Completion/Unix/Command/_user_admin,
	Completion/Unix/Command/_wget, Completion/Unix/Type/_diff_options,
	Completion/Unix/Type/_directories,  Completion/Unix/Type/_groups,
	Completion/Unix/Type/_users: new _user_admin for useradd, groupmod etc,
	rewrite of _dd to use _values and make more completions share
	descriptions for long and short options

2001-08-03  Oliver Kiddle  <opk@zsh.org>

	* 15562, Akinori Musha: 15559, 15563: Completion/BSD/Command/_chflags,
	Completion/Unix/Command/_chown, Completion/Unix/Command/_sysctl:
	new BSD completion and fix _chown for symlinks

2001-07-31  Clint Adams  <clint@zsh.org>

	* 15551: Completion/Unix/Command/_gzip: handle -l and -t
	as done for -d; only complete presumably compressed files.

2001-07-31  Sven Wischnowsky  <wischnow@zsh.org>

	* 15549: Test/Y03arguments.ztst: fix for changed listing layout

2001-07-30  Sven Wischnowsky  <wischnow@zsh.org>

	* 15526: Completion/Base/Utility/_arguments, Src/Zle/computil.c:
	change order in which compgroups adds groups; add comment to
	_arguments trying to explain how and why the return value is
	wrong

2001-07-28  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>

	* 15511: Functions/Misc/zcalc, Doc/Zsh/contrib.yo: make
	zcalc prompt configurable and allow ^D to exit.

2001-07-27  Sven Wischnowsky  <wischnow@zsh.org>

	* 15509: Completion/Base/Utility/_describe, Src/Zle/compresult.c,
	Src/Zle/computil.c: improve grouped listings some more, so that
	TABs walk along the first column first; improve list_packed
	code

2001-07-27  Peter Stephenson  <pws@csr.com>

	* 15508: Completion/Unix/Command/_cvs: cvs tag told you it was
	going to complete a tag, but then didn't.

	* 15507: Functions/Misc/zcalc, Doc/Zsh/contrib.yo: new zcalc
	shell function.

2001-07-26  Oliver Kiddle  <opk@zsh.org>

	* 15503: Test/E01options.ztst: fix posixbuiltins test so that it
	isn't broken by the existence of a print external command.

2001-07-26  Peter Stephenson  <pws@csr.com>

	* 15498: Doc/Zsh/builtins.yo, Doc/Zsh/zle.yo: fix cross-refs
	for zle builtins and add extra texinfo nodes for zle keymaps,
	builtins and widgets.

2001-07-25  Bart Schaefer  <schaefer@zsh.org>

	* 15489: Completion/Base/Utility/_describe: Fix typo.

	* 15488: Doc/Zsh/expn.yo: More index entry cleanup.  Reorder the
	description section to look less as if it has two menus in info
	and to add some cross-references.

2001-07-25  Sven Wischnowsky  <wischnow@zsh.org>

	* 15487: Completion/Base/Utility/_describe, Src/Zle/complete.c:
	move pattern matching in the loop to make sure all match specs
	are used

	* 15485: Completion/Unix/Command/_lzop,
	Completion/Zsh/Type/_directory_stack,
	Completion/Zsh/Type/_file_descriptors, Completion/Zsh/Type/_jobs:
	some more places where list-separator should be used

	* 15484: Completion/AIX/Command/_lscfg,
	Completion/AIX/Type/_logical_volumes,
	Completion/Base/Utility/_describe,
	Completion/Unix/Type/_printers, Completion/Zsh/Command/_zstyle,
	Completion/Zsh/Context/_subscript, Doc/Zsh/compsys.yo,
	Src/Zle/computil.c: another fix for 15477 (separator strings);
	add list-separator style

	* 15482: Doc/Zsh/compwid.yo, Src/Zle/compcore.c,
	Src/Zle/computil.c: fixlet for 15477, don't let it remove
	consecutive dummy matches

	* 15477: Completion/Base/Utility/_describe, Doc/Zsh/compwid.yo,
	Src/Zle/comp.h, Src/Zle/compcore.c, Src/Zle/complete.c,
	Src/Zle/complist.c, Src/Zle/compresult.c, Src/Zle/computil.c:
	make display for groups in _describe nicer; improve packing
	with list_packed; leave space for type character (list_types)
	only in groups with at least one file name

2001-07-24  Sven Wischnowsky  <wischnow@zsh.org>

	* 15470: Src/parse.c: remove nulargs in here strings

2001-07-24  Bart Schaefer  <schaefer@zsh.org>

	* 15472: Doc/Zsh/builtins.yo, Doc/Zsh/grammar.yo: Fix errors
	introduced by 15354.

2001-07-24  Sven Wischnowsky  <wischnow@zsh.org>

	* 15468: Completion/Unix/Command/_ssh: improve user/host
	completion before a @

2001-07-20  Peter Stephenson  <pws@csr.com>

	* 15432: Functions/Zle/bash-transpose-words, Doc/Zsh/contrib.yo:
	new bash-branspose-words widget.

2001-07-20  Sven Wischnowsky  <wischnow@zsh.org>

	* 15433: Src/Zle/computil.c: don't use compsuffix when it might
	be freed; use the right variable in that loop there, dammit

2001-07-19  Sven Wischnowsky  <wischnow@zsh.org>

	* 15415: Completion/Base/Utility/_describe, Src/Zle/computil.c:
	yet another followup to 15407; make _describe filter out
	non-matching strings before calling compdescribe, otherwise
	some matches will be hiddens

2001-07-18  Sven Wischnowsky  <wischnow@zsh.org>

	* 15409: Src/Zle/computil.c: fix for 15407; there may be sets
	without matches

	* 15407: Completion/Base/Utility/_describe,
	Completion/Zsh/Command/_zstyle, Doc/Zsh/compsys.yo,
	Src/Zle/complist.c, Src/Zle/compresult.c, Src/Zle/computil.c:
	add list-grouped option to make options and such be grouped
	together if they have the same description; matches with
	line-display strings can be hidden; hi and du capabalities in
	complist are only used if set by the user

	* 15402 (Akinora Musha): Completion/Unix/Command/_cvs: add
	support for -R option on BSDs

2001-07-17  Oliver Kiddle  <opk@zsh.org>

	* 15393 (Akinori Musha): Completion/Unix/Command/_chown: use
	colon separator for BSD

2001-07-17  Sven Wischnowsky  <wischnow@zsh.org>

	* 15400: Completion/Unix/Type/_path_files,
	Completion/Zsh/Command/_zstyle, Doc/Zsh/compsys.yo: add
	preserve-prefix style to keep pathname prefix unchanged

2001-07-13  Andrej Borsenkow  <bor@zsh.org>

	* 15278 (Sven), 15390: Completion/Unix/Command/_mount,
	Completion/Unix/Type/_path_files: more Cygwin support
	15278 was accidentally committed by me

2001-07-13  Sven Wischnowsky  <wischnow@zsh.org>

	* 15389: Completion/Unix/Type/_files,
	Completion/Unix/Type/_path_files: make _files not use its own
	description if there is one from a calling function; improve
	-P-prefix handling in _path_files

2001-07-11  Bart Schaefer  <schaefer@zsh.org>

	* 15375: Doc/Zsh/options.yo: Explain the effect of CORRECT on
	HASH_CMDS et al.

2001-07-10  Sven Wischnowsky  <wischnow@zsh.org>

	* 15357: Completion/Base/Completer/_prefix, Src/Zle/compcore.c,
	Src/Zle/zle_tricky.c: prefix completion: make e-o-c-p leave a
	space before the cursor, make _prefix leave the cursor after
	the inserted match even if only a single match; and make the
	C-code not show explanation strings if the completion function
	it doesn't want a list

2001-07-10  Bart Schaefer  <schaefer@zsh.org>

	* 15354: Doc/Zsh/arith.yo, Doc/Zsh/builtins.yo, Doc/Zsh/compat.yo,
	Doc/Zsh/files.yo, Doc/Zsh/func.yo, Doc/Zsh/grammar.yo,
	Doc/Zsh/intro.yo, Doc/Zsh/invoke.yo, Doc/Zsh/jobs.yo,
	Doc/Zsh/manual.yo, Doc/Zsh/params.yo, Doc/Zsh/prompt.yo,
	Doc/Zsh/redirect.yo:  Add or clean up a lot of index entries.
	Reorder the documentation for prompt escapes for readability and
	ease of lookup (I hope).

2001-07-10  Sven Wischnowsky  <wischnow@zsh.org>

	* 15352: Completion/Unix/Command/_man: remove not only numeric
	suffixes, but also `.n' and the like

2001-07-09  Peter Stephenson  <pws@csr.com>

	* 15334: Src/builtin.c, Test/A01grammar.ztst, Test/A02alias.ztst,
	Test/A04redirect.ztst, Test/C01arith.ztst, Test/D01prompt.ztst,
	Test/D04parameter.ztst, Test/D06subscript.ztst,
	Test/E01options.ztst, Test/E02xtrace.ztst, Test/V01zmodload.ztst:
	Another companion piece to 15327 to use `(eval)' as the script
	name in an eval.  This neatens the test code considerably.

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


**********************************************************************
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] 11+ messages in thread

* Failure of Test/V01 in 4.1.0-dev-2
  2001-09-27 12:39 4.1.0-dev-2 Peter Stephenson
@ 2001-09-27 14:20 ` Geoff Wing
  2001-09-27 15:07   ` Bart Schaefer
  0 siblings, 1 reply; 11+ messages in thread
From: Geoff Wing @ 2001-09-27 14:20 UTC (permalink / raw)
  To: zsh-workers

Heyla,
had the following from Test/V01zmodload.ztst .  Can anyone else reproduce it?

% cd Test
% ZTST_verbose=1 ../Src/zsh +Z -f `pwd`/ztst.zsh V01zmodload.ztst
....
Running test: Delete the module alias again
Test successful.
Running test: Unload the modules loaded by this test suite
zsh: 22769 segmentation fault (core dumped)  ZTST_verbose=1 ../Src/zsh +Z -f `pwd`/ztst.zsh V01zmodload.ztst
% gdb ../Src/zsh zsh.core
....
#0  0x481c9e52 in zfclose (leaveparams=0) at zftp.c:2662
2662        if (zfsess->control->fd == -1)
....
(gdb) p zfsess
$1 = 0x804bbd0
(gdb) p zfsess->control
$2 = 0x0


Regards,
-- 
Geoff Wing  <gcw@pobox.com>
rxvt stuff  <gcw@rxvt.org>
zsh stuff   <gcw@zsh.org>


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

* Re: Failure of Test/V01 in 4.1.0-dev-2
  2001-09-27 14:20 ` Failure of Test/V01 in 4.1.0-dev-2 Geoff Wing
@ 2001-09-27 15:07   ` Bart Schaefer
  2001-09-27 15:43     ` Bart Schaefer
  0 siblings, 1 reply; 11+ messages in thread
From: Bart Schaefer @ 2001-09-27 15:07 UTC (permalink / raw)
  To: mason, zsh-workers

On Sep 27,  2:20pm, Geoff Wing wrote:
} Subject: Failure of Test/V01 in 4.1.0-dev-2
}
} Heyla,
} had the following from Test/V01zmodload.ztst .  Can anyone else reproduce it?

It looks like zsh/zftp doesn't specify a dependency on zsh/net/tcp, so
the latter gets unloaded first and the former causes the crash.

More evidence:

schaefer<504> zfopen ftp.zsh.org
User: anonymous 
Password on ftp.zsh.org: 
Src/zsh: error in loading shared libraries
/usr/src/local/zsh/zsh-4.0-dynamic/Src/Modules/zftp.so: undefined symbol: zsh_getipnodebyname


-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


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

* Re: Failure of Test/V01 in 4.1.0-dev-2
  2001-09-27 15:07   ` Bart Schaefer
@ 2001-09-27 15:43     ` Bart Schaefer
  2001-09-28  6:33       ` Borsenkow Andrej
  0 siblings, 1 reply; 11+ messages in thread
From: Bart Schaefer @ 2001-09-27 15:43 UTC (permalink / raw)
  To: mason, zsh-workers

On Sep 27,  3:07pm, Bart Schaefer wrote:
}
} It looks like zsh/zftp doesn't specify a dependency on zsh/net/tcp

Hrm, it does specify the dependency in the .mdd file, but it's not being
respected: 

schaefer<501> zmodload zsh/zftp
schaefer<502> zmodload -L
zmodload zsh/main
zmodload zsh/zutil
zmodload zsh/compctl
zmodload zsh/complete
zmodload zsh/complist
zmodload zsh/zle
zmodload zsh/parameter
zmodload zsh/zftp

I'm not sure what's going on here.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


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

* RE: Failure of Test/V01 in 4.1.0-dev-2
  2001-09-27 15:43     ` Bart Schaefer
@ 2001-09-28  6:33       ` Borsenkow Andrej
  2001-09-28  9:57         ` PATCH: " Bart Schaefer
  0 siblings, 1 reply; 11+ messages in thread
From: Borsenkow Andrej @ 2001-09-28  6:33 UTC (permalink / raw)
  To: 'Bart Schaefer', mason, zsh-workers


> }
> } It looks like zsh/zftp doesn't specify a dependency on zsh/net/tcp
> 
> Hrm, it does specify the dependency in the .mdd file, but it's not
being
> respected:
> 
> schaefer<501> zmodload zsh/zftp
> schaefer<502> zmodload -L
> zmodload zsh/main
> zmodload zsh/zutil
> zmodload zsh/compctl
> zmodload zsh/complete
> zmodload zsh/complist
> zmodload zsh/zle
> zmodload zsh/parameter
> zmodload zsh/zftp
> 
> I'm not sure what's going on here.
> 

We discussed it already. Currently there is no mechanism that allows one
*external* module to load another *external* module it depends upon. The
general problem is that it may not be possible to load module (a.k.a.
shared object) before dependent objects have been loaded which means
that dependency information must be encoded OOB. The last statement
(15776) was to simply try to do lazy loading. It means that strictly
speaking no change is needed - module can simply do require_module in
its boot routine. We may first do it for zftp/tcp dependency and if it
works (an systems that we are able to test) code to auto generate these
lines can be added to Makemod.

-andrej


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

* PATCH: Re: Failure of Test/V01 in 4.1.0-dev-2
  2001-09-28  6:33       ` Borsenkow Andrej
@ 2001-09-28  9:57         ` Bart Schaefer
  2001-09-28 10:04           ` Core dump unloading zsh/zftp Bart Schaefer
  0 siblings, 1 reply; 11+ messages in thread
From: Bart Schaefer @ 2001-09-28  9:57 UTC (permalink / raw)
  To: zsh-workers

On Sep 28, 10:33am, Borsenkow Andrej wrote:
} > } It looks like zsh/zftp doesn't specify a dependency on zsh/net/tcp
} > 
} > Hrm, it does specify the dependency in the .mdd file, but
} 
} We discussed it already. Currently there is no mechanism that allows one
} *external* module to load another *external* module it depends upon.

Ah, right, then the test code should handle that.

However, it appears that "zmodload -u zsh/zftp" dumps core even if the
zsh/net/tcp module is still loaded, so there's some kind of a bug in
zftp.c.

Index: Src/V01zmodload.ztst
===================================================================
diff -c -r1.2 V01zmodload.ztst
--- Src/V01zmodload.ztst	2001/07/10 09:05:25	1.2
+++ Src/V01zmodload.ztst	2001/09/28 09:53:39
@@ -12,6 +12,10 @@
    eval "$name $modfile $link $auto $load"
    [[ $link == no ]] && continue
    mods=($mods $name)
+   moddeps=
+   modfile=$ZTST_srcdir/../$modfile
+   eval ${${${(f)"$(<$modfile)"}[(r)moddeps=*]}:-:}
+   [[ -n $moddeps ]] && zmodload -d $name $=moddeps
  done < $ZTST_testdir/../config.modules
 
  zmodunload() {
@@ -157,5 +161,5 @@
 %clean
 
  eval "$deps"
- unset deps name modfile link auto load funcs mods
+ unset deps name modfile link auto load funcs mods moddeps
  unfunction zmodunload


-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


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

* Core dump unloading zsh/zftp
  2001-09-28  9:57         ` PATCH: " Bart Schaefer
@ 2001-09-28 10:04           ` Bart Schaefer
  2001-09-28 10:22             ` Peter Stephenson
  0 siblings, 1 reply; 11+ messages in thread
From: Bart Schaefer @ 2001-09-28 10:04 UTC (permalink / raw)
  To: zsh-workers

On Sep 28,  9:57am, Bart Schaefer wrote:
} 
} However, it appears that "zmodload -u zsh/zftp" dumps core even if the
} zsh/net/tcp module is still loaded, so there's some kind of a bug in
} zftp.c.

Running:
    zmodload zsh/zftp
    zmodload -u zsh/zftp

Crashes with this stack trace:

(gdb) where
#0  0x401ade30 in zfclose (leaveparams=0)
    at ../../../zsh-4.0/Src/Modules/zftp.c:2662
#1  0x401aefee in zftp_cleanup ()
    at ../../../zsh-4.0/Src/Modules/zftp.c:3080

It appears that the zfsessions linklist is not empty, even though there
is no valid session in it anywhere.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


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

* Re: Core dump unloading zsh/zftp
  2001-09-28 10:04           ` Core dump unloading zsh/zftp Bart Schaefer
@ 2001-09-28 10:22             ` Peter Stephenson
  2001-09-28 10:33               ` Borsenkow Andrej
  0 siblings, 1 reply; 11+ messages in thread
From: Peter Stephenson @ 2001-09-28 10:22 UTC (permalink / raw)
  To: Zsh hackers list

Bart Schaefer wrote:
> Running:
>     zmodload zsh/zftp
>     zmodload -u zsh/zftp

It crashes when you exit the shell, too, if you have zsh/zftp loaded.

> It appears that the zfsessions linklist is not empty, even though there
> is no valid session in it anywhere.

See boot_ -- you always get a `default' session.

It way well be related to the stuff I posted yesterday about TCP session
management: deciding what zfclose() should actually be doing was one of the
big problems.  The interface between the zftp and tcp modules is still a
bit tricky.

Here's the patch to make zftp load tcp.  This handles the dependency
transparently with a working RTLD_LAZY, which seems fine with Solaris.
It should be pretty easy to convert dependency lists into code like this.

The only fly in the ointment I can see is with multiple dependencies: if we
load module A, then fail to load module B, we should unload A if it wasn't
already loaded.  Hence we should probably write a function for module.c
which is passed the list of dependency modules and handles loading in this
way.

It doesn't unload tcp automatically, though.  I don't know how to do that,
given that tcp may meanwhile be used for other things meanwhile.  In
particular, it links in a builtin, at which point we can't really tell
who's doing what.

Index: Src/Modules/zftp.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/zftp.c,v
retrieving revision 1.19
diff -u -r1.19 zftp.c
--- Src/Modules/zftp.c	2001/09/08 21:09:56	1.19
+++ Src/Modules/zftp.c	2001/09/28 10:12:39
@@ -3099,6 +3099,10 @@
 int
 setup_(Module m)
 {
+    /* setup_ returns 0 for success. load_module returns 1 for success. */
+    if (!module_loaded("zsh/net/tcp"))
+	return !load_module("zsh/net/tcp");
+
     return 0;
 }
 
-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 392070


**********************************************************************
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] 11+ messages in thread

* RE: Core dump unloading zsh/zftp
  2001-09-28 10:22             ` Peter Stephenson
@ 2001-09-28 10:33               ` Borsenkow Andrej
  2001-09-28 11:06                 ` Peter Stephenson
  0 siblings, 1 reply; 11+ messages in thread
From: Borsenkow Andrej @ 2001-09-28 10:33 UTC (permalink / raw)
  To: 'Peter Stephenson', 'Zsh hackers list'

> +    if (!module_loaded("zsh/net/tcp"))
> +	return !load_module("zsh/net/tcp");


require_module does a bit more checking and is using
queue/unqueue_signals which makes me suspect it is better suited ... (or
all this checking is redundant?)

-andrej


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

* Re: Core dump unloading zsh/zftp
  2001-09-28 10:33               ` Borsenkow Andrej
@ 2001-09-28 11:06                 ` Peter Stephenson
  2001-09-28 11:15                   ` Borsenkow Andrej
  0 siblings, 1 reply; 11+ messages in thread
From: Peter Stephenson @ 2001-09-28 11:06 UTC (permalink / raw)
  To: Zsh hackers list

Borsenkow Andrej wrote:
> > +    if (!module_loaded("zsh/net/tcp"))
> > +	return !load_module("zsh/net/tcp");
> 
> 
> require_module does a bit more checking and is using
> queue/unqueue_signals which makes me suspect it is better suited ... (or
> all this checking is redundant?)

You're right, that's the obvious thing to use.  The third argument to
require_module appears not to do anything, however.

One very minor issue with loading a module at that point is that it appears
after the module you're actually requesting (i.e. zsh/zftp) in the list of
modules produced by zmodload, which is slightly illogical.

Index: Src/Modules/zftp.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/zftp.c,v
retrieving revision 1.19
diff -u -r1.19 zftp.c
--- Src/Modules/zftp.c	2001/09/08 21:09:56	1.19
+++ Src/Modules/zftp.c	2001/09/28 11:01:45
@@ -3099,7 +3099,8 @@
 int
 setup_(Module m)
 {
-    return 0;
+    /* setup_ returns 0 for success. require_module returns 1 for success. */
+    return !require_module("", "zsh/net/tcp", 0, 0);
 }
 
 /**/

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


**********************************************************************
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] 11+ messages in thread

* RE: Core dump unloading zsh/zftp
  2001-09-28 11:06                 ` Peter Stephenson
@ 2001-09-28 11:15                   ` Borsenkow Andrej
  0 siblings, 0 replies; 11+ messages in thread
From: Borsenkow Andrej @ 2001-09-28 11:15 UTC (permalink / raw)
  To: 'Peter Stephenson', 'Zsh hackers list'


> 
> One very minor issue with loading a module at that point is that it
> appears
> after the module you're actually requesting (i.e. zsh/zftp) in the
list of
> modules produced by zmodload, which is slightly illogical.
> 

We need to add dependency tracking for external modules anyway
(require_modules does not do it; it would be obvious place to add, in
which case we need to make sure it is used in all places). In this case
listing code may just walk dependency tree depth-first.

-andrej


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

end of thread, other threads:[~2001-09-28 11:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-27 12:39 4.1.0-dev-2 Peter Stephenson
2001-09-27 14:20 ` Failure of Test/V01 in 4.1.0-dev-2 Geoff Wing
2001-09-27 15:07   ` Bart Schaefer
2001-09-27 15:43     ` Bart Schaefer
2001-09-28  6:33       ` Borsenkow Andrej
2001-09-28  9:57         ` PATCH: " Bart Schaefer
2001-09-28 10:04           ` Core dump unloading zsh/zftp Bart Schaefer
2001-09-28 10:22             ` Peter Stephenson
2001-09-28 10:33               ` Borsenkow Andrej
2001-09-28 11:06                 ` Peter Stephenson
2001-09-28 11:15                   ` Borsenkow Andrej

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