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

Re: _files vs _path_files discussion (old thread)



On Mar 12,  8:14pm, Adam Spiers wrote:
} Subject: Re: _files vs _path_files discussion (old thread)
}
} > If you have global directories file-patterns you're going to need them
} > for globbed-files, too ...
} 
} Why's that?  I'm still not fully understanding this, it seems.

The default for _files with no options and no file-patterns styles is to
use the all-files tag (this is determined by the setting of `type' in
_files if you want to follow it).

If you give file-patterns for any of globbed-files, directories or
all-files, then (`type' gets changed, so) different tags are used.  If
the only file-patterns you give are for directories, then the tags used
are directories and all-files.

To get globbed-files used, you either have to specify file-patterns for
it, or else the caller of _files has to pass -g.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



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