summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--Completion/Unix/Command/_module2
-rw-r--r--Doc/Zsh/func.yo4
3 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6cf44b488..52c8f4574 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-10-02 Peter Stephenson <pws@csr.com>
+
+ * 23883: Doc/Zsh/func.yo: try to improve precmd documentation.
+
+ * Daniel Qarras: users/11915: Completion/Unix/Command/_module:
+ .version incorrectly quoted as regexp.
+
2007-10-01 Clint Adams <clint@zsh.org>
* Nikolai Weibull: 23889: Completion/Unix/Command/_git: fix -o
diff --git a/Completion/Unix/Command/_module b/Completion/Unix/Command/_module
index 6e00ccf05..e220a94e8 100644
--- a/Completion/Unix/Command/_module
+++ b/Completion/Unix/Command/_module
@@ -85,7 +85,7 @@ _module_available_modules()
{
if [[ -n $MODULEPATH ]] && [[ ${+_available_modules} -eq 0 ]]
then
- _available_modules=($(find ${(e)=MODULEPATH//:/ } -xtype f -print 2>/dev/null | grep -v \.version | sed -e 's,\('${${(e)=MODULEPATH//:/\/\\\|}%\\\|}'\),,g' -e 's,^/*,,g'))
+ _available_modules=($(find ${(e)=MODULEPATH//:/ } -xtype f -print 2>/dev/null | grep -v \\.version | sed -e 's,\('${${(e)=MODULEPATH//:/\/\\\|}%\\\|}'\),,g' -e 's,^/*,,g'))
fi
}
diff --git a/Doc/Zsh/func.yo b/Doc/Zsh/func.yo
index 16a838f9d..1bdf169c1 100644
--- a/Doc/Zsh/func.yo
+++ b/Doc/Zsh/func.yo
@@ -188,7 +188,9 @@ Hence the set of functions is always called together.
findex(precmd)
vindex(precmd_functions)
item(tt(precmd))(
-Executed before each prompt.
+Executed before each prompt. Note that precommand functions are not
+reexecuted simply because the command line is redrawn, as happens, for
+example, when a notification about an exiting job is displayed.
)
findex(preexec)
vindex(preexec_functions)