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

.so vs .bundle on Mac



Hi,

my macports zsh installation uses .bundle as the extension for loadable modules and _zmodload fails at correctly completing these.

(The zsh that ships with Mac OS is using .so. From a quick google search it seems that either ".bundle" or ".so" can be used.)

Would the following patch make sense?

--- _zmodload.orig	2010-11-25 16:56:16.000000000 +0100
+++ _zmodload	2010-11-25 16:58:40.000000000 +0100
@@ -62,7 +62,7 @@
     _requested loadedmodules expl 'loaded modules' \
       compadd -k 'modules[(R)loaded]' && ret=0
     _requested files expl 'module file' \
-      _files -W module_path -/g '*.(dll|s[ol])(:r)' && ret=0
+      _files -W module_path -/g '*.(dll|s[ol]|bundle)(:r)' && ret=0
     _requested aliases expl 'module alias' \
       compadd "$suf[@]" -k 'modules[(R)alias*]' && ret=0
   done


Sebastian



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