From: Marko Myllynen <myllynen@redhat.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Pattern matching with _files vs command line
Date: Fri, 9 Sep 2016 08:39:09 +0300 [thread overview]
Message-ID: <75f69404-5bc4-20e5-caf7-3d0a6dd87b59@redhat.com> (raw)
Hi,
With the file-patterns style unset and the following compdef:
#compdef foo
local expl ret=1
_wanted files expl file _files -g '*(-FM)' && ret=0
return ret
I see the following difference, is this expected or perhaps a bug?
% find
.
./empty
./full
./full/test.txt
./file.txt
% ls -d *(-FM)
full/
% foo <TAB>
empty full full/
% foo empty/
Both the double match for full and empty being offered were
unexpected to me.
Thanks,
--
Marko Myllynen
next reply other threads:[~2016-09-09 21:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-09 5:39 Marko Myllynen [this message]
2016-09-10 2:40 ` Bart Schaefer
[not found] ` <20160911094221.GA18467@fujitsu.shahaf.local2>
2016-09-11 16:18 ` 39093 erases variant with slashes (was: Re: Pattern matching with _files vs command line) Bart Schaefer
2016-09-12 4:30 ` Pattern matching with _files vs command line Marko Myllynen
2016-09-12 15:18 ` Bart Schaefer
2016-09-12 15:34 ` Marko Myllynen
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=75f69404-5bc4-20e5-caf7-3d0a6dd87b59@redhat.com \
--to=myllynen@redhat.com \
--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).