zsh-workers
 help / color / mirror / code / Atom feed
* Pattern matching with _files vs command line
@ 2016-09-09  5:39 Marko Myllynen
  2016-09-10  2:40 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Marko Myllynen @ 2016-09-09  5:39 UTC (permalink / raw)
  To: zsh workers

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-09-12 15:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-09  5:39 Pattern matching with _files vs command line Marko Myllynen
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

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).