summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Completion/Unix/Command/_module2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8cb714fc2..fdcb3ca2d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2007-03-31  Clint Adams  <clint@zsh.org>
 
+	* 23255: Completion/Unix/Command/_module: fix 23253 better.
+
 	* 23253: Erik Johansson: Completion/Unix/Command/_module:
 	remove double quotes causing zcompile to choke.
 
diff --git a/Completion/Unix/Command/_module b/Completion/Unix/Command/_module
index 06db1550b..6e00ccf05 100644
--- a/Completion/Unix/Command/_module
+++ b/Completion/Unix/Command/_module
@@ -83,7 +83,7 @@ _module()
 # Fills the available modules cache
 _module_available_modules()
 {
-  if (( [[ -n $MODULEPATH ]] && [[ ${+_available_modules} -eq 0 ]] ));
+  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'))
   fi