about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog166
-rw-r--r--Config/version.mk4
-rw-r--r--Doc/Zsh/mod_parameter.yo4
-rw-r--r--Etc/FAQ.yo40
-rw-r--r--Src/exec.c3
5 files changed, 195 insertions, 22 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b5123141..09f3d0810 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,160 @@
+2000-02-02  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>
+
+	* Bart: 9533: Src/signals.c: make sure shell doesn't send itself
+	SIGHUP when exiting.
+
+	* Sven: 9528: Completion/Core/_files: missing variable
+	initialization.
+
+	* Sven: 9527: Doc/Zsh/compsys.yo: extra description for styles.
+
+	* Sven: 9526: Src/Zle/computil.c: missing tokenization in
+	completion listing.
+
+	* Sven: 9524: Src/text.c: wordcode bug outputting function
+	definitions.
+
+	* Sven: 9522: Src/utils.c: return on various conditions when
+	reading a character from the terminal.
+
+	* Sven: 9521: Src/exec.c: another job-waiting fix.
+
+2000-02-01  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>
+
+	* pws: 9518: Test/.distfiles, Test/10prompt.ztst: test for prompt
+	escapes.
+
+	* Clint/Sven: 9500 rewritten as 9505: Src/mem.c: more graceful exit
+	after mmap() failure when used for heap allocation.
+
+	* Alexandre: 9504: Completion/Builtins/_zstyle: complete name of
+	packageset style.
+
+	* Sven: 9503: Src/exec.c: problem updating job entry without any
+	processes.
+
+	* Alexandre: 9502: Completion/User/_urls,
+	Completion/Core/compinit, Completion/Core/_menu,
+	Completion/Core/_match, Completion/Base/_combination: fix 9463
+	to use ':completion:...' prefix with zstyle.
+
+2000-01-31  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>
+
+	* Sven: 9496: Src/loop.c: failure to check for return status in
+	for loop.
+
+	* Bart: 9495: Src/exec.c: re-block after waiting for jobs.
+
+	* Sven: 9494: Src/Zle/computil.c: extraneous space with option
+	description.
+
+	* Bart: 9493: Test/09funcdef.ztst: regression test for function
+	definition.
+
+	* Sven: 9489: Src/Zle/complist.c, Src/Zle/compresult.c: avoid menu
+	selection with no list and asking whether to list twice.
+
+	* Sven: 9488: Src/exec.c: remove unnecessary child_block().
+
+	* Sven: 9487: Src/exec.c: wordcode fix: expand names in function
+	definitions.
+
+	* Sven: 9486: Doc/Zsh/compwid.yo: fix docs for compadd -1 with -J
+
+2000-01-30  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>
+
+	* Tanaka Akira: 9476: Completion/User/_cvs,
+	Completion/User/_patch: prefer LC_ALL to LANG as the former
+	overrides the latter.
+
+	* Tanaka Akira: 9475: Completion/User/_telnet: simplify by using
+	(K) parameter flag.
+
+	* Tanaka Akira: 9473: Completion/User/_patch: improved support for
+	different versions of `patch'.
+
+	* Bart: 9472: Doc/Makefile.in: dependencies on texinfo files when
+	building out of source tree.
+
+	* Tanaka Akira: 9470: Completion/Debian/_deb_packages: updage
+	should be update throughout.
+
+	* Clint: 9469: Completion/Debian/_deb_packages,
+	Completion/Debian/_dpkg, Doc/Zsh/compsys.yo: new packageset style
+	to select Debian package.
+
+2000-01-29  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>
+
+	* Alexandre: 1684: Completion/User/.distfiles: add _diff and
+	_diff_options.
+
+	* Alexandre: 9463: Completion/User/_urls,
+	Completion/Core/compinit, Completion/Core/_menu,
+	Completion/Core/_match, Completion/Base/_combination: switch to
+	using zstyle instead of compstyle in various functions.
+
+	* Sven: 9458: Src/Zle/complete.c, Src/Zle/compresult.c: used freed
+	memory in completion; should have been using heaps all along.
+
+	* Sven: 9457: Src/params.c: tokenisation problem with patterns
+	using parameter flag (K).
+
+	* Sven: 9454: Completion/Core/_path_files: handling path prefixes
+	with patterns more cleverly.
+
+	* Sven: 9452: Completion/Base/_arguments: `--exclude=' shouldn't
+	show both argument list and completions of --exclude....
+
+	* Bart: 9448: Makefile.in: treat Test subdirectory along with
+	others in make procedures (notably distclean).
+
+	* Sven: 9442: Src/Zle/compresult.c: problems with suffixes when
+	cursor style set.
+
+	* Sven: 9441: Completion/Core/_files,
+	Completion/User/_diff_options: _files sometimes didn't use
+	ignored-patterns; use $(command diff) just in case, plus more
+	verbose descriptions.
+
+	* Alexandre: 9436: Completion/User/_prcs,
+	Completion/User/_diff_options, Completion/User/_diff: prcs
+	enhancements with builtin diff support, plus diff options for use
+	directly with GNU diff.
+
+2000-01-25  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>
+
+	* pws: Etc/FAQ.yo: updated from latest posted version.
+
+	* Sven: 9424: Src/Modules/parameter.c: problems with 9421 with
+	aliases and dir parameters.
+
+2000-01-24  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>
+
+	* pws: 9421: Src/params.c: PM_REMOVABLE parameters are freeable
+	since they were created by an ordinary createparam() (fixes
+	memory leak).
+
+	* Alexandre: 9419: Src/Zle/complist.c: more problems with
+	backreferences in list-colors: aborts after failed backref,
+	nested backrefs not handled.
+
+	* Sven: 9417: Src/Zle/compcore.c: prefix code confused by matcher
+	specifications.
+
+	* Sven: 9416: Completion/Core/_setup, Src/Zle/complist.c: problems
+	using backreferences in list-colors, check zsh/complist is loaded
+	if needed.
+
+	* Sven: 9415: Doc/Zsh/mod_complist.yo: typo in pattern example.
+
+	* Sven: 9414: Completion/Core/_path_files: use _comp_ignore.
+
+	* Sven: 9413: Functions/Zftp/zfinit, Src/Modules/zutil.c,
+	Src/loop.c: cleanups for module name, new completion test,
+	compilation warnings.
+
+	* Sven: 9361: Src/exec.c: simplifty getoutput() test.
+
 2000-01-23  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>
 
 	* pws: Config/version.mk, Src/Modules/.distfiles: 3.1.6-dev-16;
@@ -29,6 +186,8 @@
 	list-based instead of function-based system for shell function
 	wrappers.
 
+	* Tanaka Akira: 9400: Completion/User/.distfiles: add _finger
+
 	* Sven: 9399: Functions/Zftp/zfinit: bad reverse index.
 
 	* Sven: 9398: Functions/Zftp/zfcd_match,
@@ -94,6 +253,8 @@
 
 2000-01-18  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>
 
+	* pws: 9354: Etc/MACHINES: problems reported on SPARC.
+	
 	* Sven: 9336: Src/signals.c: addition to 9332.
 
 	* Sven: 9332: Src/Modules/example.c, Src/Modules/parameter.c,
@@ -104,9 +265,6 @@
 	Src/signals.c, Src/text.c, Src/utils.c, Src/zsh.h: Use word code
 	instead of structs for passing executable chunks around.
 
-	* pws: 9357: Src/glob.c: speculative but harmless attempt to avoid
-	alignment problems on sparc/Linux.
-
 	* Sven: 9353: Completion/Base/_jobs: bad prefix test
 
 	* Sven: 9348: Src/Modules/zutil.c: various minor regex fixes
@@ -712,6 +870,8 @@
 	* Sven: 2776: Completion/Core/_path_files: handling of . and .. in
 	path.
 
+	* Felix: 1 chunk of 9008: Doc/Zsh/mod_parameter.yo: docs for $jobdirs.
+	
 	* Felix: (most of) 9007: Src/Modules/parameter.c,
 	Src/modules/parameter.mdd, mod_parameter.yo: jobdirs special assoc
 	array.
diff --git a/Config/version.mk b/Config/version.mk
index e61c2316a..510317494 100644
--- a/Config/version.mk
+++ b/Config/version.mk
@@ -27,5 +27,5 @@
 # This must also serve as a shell script, so do not add spaces around the
 # `=' signs.
 
-VERSION=3.1.6-dev-16
-VERSION_DATE='January 18, 2000'
+VERSION=3.1.6-dev-17
+VERSION_DATE='February 2, 2000'
diff --git a/Doc/Zsh/mod_parameter.yo b/Doc/Zsh/mod_parameter.yo
index 8e34130d1..07e90ec21 100644
--- a/Doc/Zsh/mod_parameter.yo
+++ b/Doc/Zsh/mod_parameter.yo
@@ -111,6 +111,10 @@ vindex(historywords)
 item(tt(historywords))(
 A special array containing the words stored in the history.
 )
+vindex(jobdirs)
+item(tt(jobdirs))(
+This association maps job numbers to the directories from which the job was started (which may not be the current directory of the job).
+)
 vindex(jobtexts)
 item(tt(jobtexts))(
 This association maps job numbers to the texts of the command lines
diff --git a/Etc/FAQ.yo b/Etc/FAQ.yo
index 42bf26021..0e1274300 100644
--- a/Etc/FAQ.yo
+++ b/Etc/FAQ.yo
@@ -1,4 +1,4 @@
-mailto(pws@ifh.de)\
+mailto(pws@pwstephenson.fsnet.co.uk)\
 whentxt(notableofcontents())\
 COMMENT(-- mytt is like tt but adds quotes `like this' for plain text --)\
 def(mytt)(1)(\
@@ -34,7 +34,7 @@ def(myeit)(0)(\
     whentxt(eit()CHAR(41)))\
 def(myeitd)(0)(\
     whenlatex(eit())whenhtml(eit())whenman(eit())whenms(eit())whensgml(eit())\
-    whentxt(eit().))\
+    whentxt(.))\
 COMMENT(-- don't want headers for text, USENET headers must come first --)\
 def(myreport)(3)(\
 whentxt(report()()())\
@@ -43,15 +43,20 @@ whenlatex(report(ARG1)(ARG2)(ARG3))\
 whenman(report(ARG1)(ARG2)(ARG3))\
 whenms(report(ARG1)(ARG2)(ARG3))\
 whensgml(report(ARG1)(ARG2)(ARG3)))
-myreport(Z-Shell Frequently-Asked Questions)(Peter Stephenson)(1999/05/24)
+myreport(Z-Shell Frequently-Asked Questions)(Peter Stephenson)(2000/1/25)
 COMMENT(-- the following are for Usenet and must appear first)\
 description(\
 mydit(Archive-Name:) unix-faq/shell/zsh
-mydit(Last-Modified:) 1999/07/30
+mydit(Last-Modified:) 2000/11/25
 mydit(Submitted-By:) email(pws@ibmth.df.unipi.it (Peter Stephenson))
-mydit(Version:) $Id: FAQ.yo,v 1.1.1.19 1999/12/23 23:01:43 akr Exp $
+mydit(Version:) $Id: FAQ.yo,v 1.1.1.20 2000/02/03 01:21:45 akr Exp $
 mydit(Posting-Frequency:) Monthly
-mydit(Copyright:) (C) P.W. Stephenson, 1995--1999 (see end of document)
+mydit(Copyright:) (C) P.W. Stephenson, 1995--2000 (see end of document)
+)
+
+bf(Changes since issue posted December 1999:)
+description(
+mydit(   )  None.  Suggestions on a postcard.
 )
 
 This document contains a list of frequently-asked (or otherwise
@@ -290,7 +295,7 @@ sect(On what machines will it run?)
 
 sect(What's the latest version?)
 
-  Zsh 3.0.6 is the latest production version. The new major number 3.0
+  Zsh 3.0.7 is the latest production version. The new major number 3.0
   largely reflects the considerable internal changes in zsh to make it more
   reliable, consistent and (where possible) compatible.  Those planning on
   upgrading their zsh installation should take a look at the list of
@@ -301,7 +306,10 @@ sect(What's the latest version?)
   patch by patch, with each intermediate version publicly available.  Note
   that this `open' development system does mean bugs are sometimes
   introduced into the most recent archived version.  These are usually
-  fixed quickly.
+  fixed quickly.  If you are really interested in getting the latest
+  improvements, and less worried about providing a stable environment,
+  development versions are uploaded quite frequently to the archive in the
+  tt(development) subdirectory.
 
   Note also that as the shell changes, it may become incompatible with
   older versions; see the end of question link(5.1)(51) for a partial list.
@@ -338,8 +346,6 @@ label(16)
 (ftp://ftp.cenatls.cena.dgac.fr/pub/shells/zsh/)
     mydit(Germany)   url(ftp://ftp.fu-berlin.de/pub/unix/shells/zsh/)
 (ftp://ftp.fu-berlin.de/pub/unix/shells/zsh/)
-    mydit()          url(ftp://ftp.gmd.de/packages/zsh/)
-(ftp://ftp.gmd.de/packages/zsh/)
     mydit()          url(ftp://ftp.uni-trier.de/pub/unix/shell/zsh/)
 (ftp://ftp.uni-trier.de/pub/unix/shell/zsh/)
     mydit(Hungary)   url(ftp://ftp.cs.elte.hu/pub/zsh/)
@@ -1122,7 +1128,7 @@ sect(How do I automatically display the directory in my xterm title bar?)
   You should use the special function mytt(chpwd), which is called when
   the directory changes.  The following checks that standard output is
   a terminal, then puts the directory in the title bar if the terminal
-  is compatible with tt(xterm) or is a tt(sun-cmd).
+  is an tt(xterm) or some close relative, or a tt(sun-cmd).
   
   verb(
   chpwd() {
@@ -1130,7 +1136,7 @@ sect(How do I automatically display the directory in my xterm title bar?)
     case $TERM in
       sun-cmd+CHAR(41) print -Pn "\e]l%~\e\\"
         ;;
-      *xterm*|rxvt|dtterm|Eterm|kterm+CHAR(41) print -Pn "\e]2;%~\a"
+      *xterm*|rxvt|(dt|k|E)term+CHAR(41) print -Pn "\e]2;%~\a"
         ;;
     esac
   }
@@ -1719,8 +1725,12 @@ sect(How does zsh deal with ambiguous completions?)
       completions
    it() with tt(AUTO_LIST) set, when the completion is ambiguous you get a
       list without having to type tt(\C-D)
-   it() with tt(LIST_AMBIGOUS), this is modified so that nothing is listed if
-      there is an unambiguous prefix or suffix to be inserted
+   it() with tt(BASH_AUTO_LIST) set, the list only happens the second
+      time you hit tab on an ambiguous completion
+   it() with tt(LIST_AMBIGUOUS), this is modified so that nothing is listed if
+      there is an unambiguous prefix or suffix to be inserted --- this
+      can be combined with tt(BASH_AUTO_LIST), so that where both are
+      applicable you need to hit tab three times for a listing.
    it() with tt(MENU_COMPLETE) set, one completion is always inserted
       completely, then when you hit TAB it changes to the next, and so
       on until you get back to where you started
@@ -2197,7 +2207,7 @@ Wischnowsky).
 nsect(Copyright Information:)
 
 This document is copyright (C) P.W. Stephenson, 1995, 1996, 1997,
-1998, 1999. This text originates in the U.K. and the author asserts
+1998, 1999, 2000. This text originates in the U.K. and the author asserts
 his moral rights under the Copyrights, Designs and Patents Act, 1988.
 
 Permission is hereby granted, without written agreement and without
diff --git a/Src/exec.c b/Src/exec.c
index a793dc478..45f771bd2 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -2527,8 +2527,7 @@ getoutput(char *cmd, int qt)
 	wc_code(pc[2]) == WC_PIPE && WC_PIPE_TYPE(pc[2]) == WC_PIPE_END &&
 	wc_code(pc[3]) == WC_REDIR && WC_REDIR_TYPE(pc[3]) == READ && 
 	!pc[4] &&
-	wc_code(pc[6]) == WC_SIMPLE && !WC_SIMPLE_ARGC(pc[6]) &&
-	wc_code(pc[7]) == WC_END) {
+	wc_code(pc[6]) == WC_SIMPLE && !WC_SIMPLE_ARGC(pc[6])) {
 	/* $(< word) */
 	int stream;
 	char *s = dupstring(ecrawstr(prog, pc + 5));