On Aug 12, 9:35pm, Mikael Magnusson wrote: } } > pats=( " *(-/):directories:directories ${glob//:/\\:}:globbed-files" '*(-^/):other-files' ) } } Is the leading space in that pattern significant in any way, by the way? I can't think of any reason why it would be.