zsh-workers
 help / color / mirror / code / Atom feed
From: "Jun T." <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: _file in _zmodload: why option -/ ?
Date: Sat, 26 Oct 2013 18:25:27 +0900	[thread overview]
Message-ID: <71A3F03E-CFD1-48A1-8AE1-E62FDEC37806@kba.biglobe.ne.jp> (raw)

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=("*(/)")'


             reply	other threads:[~2013-10-26 10:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-26  9:25 Jun T. [this message]
2013-10-26 21:37 ` Bart Schaefer
2013-10-27 16:10   ` Jun T.
2013-10-27 22:54     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=71A3F03E-CFD1-48A1-8AE1-E62FDEC37806@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).