Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_file in _zmodload: why option -/ ?
- X-seq: zsh-workers 31901
- From: "Jun T." <takimoto-j@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: _file in _zmodload: why option -/ ?
- Date: Sat, 26 Oct 2013 18:25:27 +0900
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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