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

_file in _zmodload: why option -/ ?



In Completion/Zsh/Command/_zmodload, line 65,

      _files -W module_path -/g '*.(dll|s[ol]|bundle)(:r)' && ret=0

Why the option -/ is necessary here?
I guess just -g 'pattern' is enough.

I noticed this because 'gmodload <TAB>' completes only directory and no
module files if I use the following style (by Bart Schaefer, see 31638),

zstyle -e ':completion::*' file-patterns \
	'[[ $funcstack[1] = _files && $type = */* ]] && reply=("*(/)")'



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