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

Re: PATCH: Allow / in full pattern alternations



On Mon, 11 Apr 2016 14:06:14 +0200
Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> % print -l (${(~j:|:)${:-$^fpath/rep*}})
> /home/mikaelh/.zsh/functions/repoint
> /home/mikaelh/.zsh/functions/repointmany
> /usr/local/share/zsh/5.2-dev-1-mika/functions/replace-argument
> /usr/local/share/zsh/5.2-dev-1-mika/functions/replace-string
> /usr/local/share/zsh/5.2-dev-1-mika/functions/replace-string-again

Are you simply trying to do this so you can add the same glob qualifiers
etc.?  What's wrong with

print -l ${^fpath}/rep*

etc.?

pws



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