From 0af9ef0d58a6bd495e5f0f4d7145d8fcb6abe9ea Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 2 Oct 2007 09:08:26 +0000 Subject: 23883: improve precmd documentation Daniel Qarras: users/11915: .version quoting in _module completion --- ChangeLog | 7 +++++++ Completion/Unix/Command/_module | 2 +- Doc/Zsh/func.yo | 4 +++- 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 + + * 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 * 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) -- cgit 1.4.1