diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-08-31 12:35:36 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-08-31 12:35:36 +0000 |
commit | efed1e6c10daba9ea4260845a91f518f573ec1d3 (patch) | |
tree | 1ef8c57b841a3ce643517e78f8c6248b379d36ce | |
parent | 999155849631b17d87327c666365615697890b43 (diff) | |
download | zsh-efed1e6c10daba9ea4260845a91f518f573ec1d3.tar.gz zsh-efed1e6c10daba9ea4260845a91f518f573ec1d3.tar.xz zsh-efed1e6c10daba9ea4260845a91f518f573ec1d3.zip |
users/13162: strip ~ suffix from modules
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Command/_module | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 04f57c296..c65e2fed7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-08-31 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * users/13162: Completion/Unix/Command/_module: strip + "~" suffix from modules. + 2008-08-30 Clint Adams <clint@zsh.org> * 25553: Completion/Zsh/Command/_precommand: diff --git a/Completion/Unix/Command/_module b/Completion/Unix/Command/_module index e220a94e8..65e29430a 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 } |