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

Re: No way to properly complete specific set of files



On Apr 28,  7:12pm, Peter Stephenson wrote:
}
} _path_files -g "(${(j.|.)~files})"
} 
} relying on an extended_glob pattern to match any of the files.  That's
} not perfect --- in particular if there are metacharacters in the
} file names they'll confuse it.

Wouldn't

    _path_files -g "(${(j.|.)~${(@q)files}})"

do it?



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