Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#416441: Patch



> What's up with the double parens?

That's a good question too.

Index: Completion/Unix/Command/_module
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_module,v
retrieving revision 1.4
diff -u -r1.4 _module
--- Completion/Unix/Command/_module	31 Mar 2007 17:05:28 -0000	1.4
+++ Completion/Unix/Command/_module	31 Mar 2007 19:00:55 -0000
@@ -83,7 +83,7 @@
 # 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



Messages sorted by: Reverse Date, Date, Thread, Author