about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-03-31 17:05:27 +0000
committerClint Adams <clint@users.sourceforge.net>2007-03-31 17:05:27 +0000
commit9efbffde57ec0a77e3672f7da340f802bc4e80a7 (patch)
treea64348ee6c22e6eaa194f554bab6fa5d037918f6
parent1943715247636675b28efb46dfcd35cb211c1809 (diff)
downloadzsh-9efbffde57ec0a77e3672f7da340f802bc4e80a7.tar.gz
zsh-9efbffde57ec0a77e3672f7da340f802bc4e80a7.tar.xz
zsh-9efbffde57ec0a77e3672f7da340f802bc4e80a7.zip
23253: Erik Johansson: remove double quotes causing zcompile to choke.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_module2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bfa678fe6..8cb714fc2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-31  Clint Adams  <clint@zsh.org>
+
+	* 23253: Erik Johansson: Completion/Unix/Command/_module:
+	remove double quotes causing zcompile to choke.
+
 2007-03-30  Clint Adams  <clint@zsh.org>
 
 	* 23252: Completion/Debian/Command/_aptitude: complete for
diff --git a/Completion/Unix/Command/_module b/Completion/Unix/Command/_module
index 075e1c340..06db1550b 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