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

Re: How to overcome the (a/b/c…)(N) pattern limitation?



On Sat, 18 Apr 2020 at 16:07, Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
wrote:

>
> pick="(/tmp/gh|./gh)"
> list=( ${(M)~pick##/*}(DN) )
>

PS. I would rather not use eval.

-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zinit
Blog: http://zdharma.org


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