about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-10-02 09:08:26 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-10-02 09:08:26 +0000
commit0af9ef0d58a6bd495e5f0f4d7145d8fcb6abe9ea (patch)
tree53a4c07f5f3dc97e995226cf3a01781798253e7b
parent5383efac8c558daa538e5a14f2f16870471e8703 (diff)
downloadzsh-0af9ef0d58a6bd495e5f0f4d7145d8fcb6abe9ea.tar.gz
zsh-0af9ef0d58a6bd495e5f0f4d7145d8fcb6abe9ea.tar.xz
zsh-0af9ef0d58a6bd495e5f0f4d7145d8fcb6abe9ea.zip
23883: improve precmd documentation
Daniel Qarras: users/11915: .version quoting in _module completion
-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)