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, Apr 18, 2020 at 2:51 PM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
> I was trying to do: ls (/tmp/somedir/gh|./gh)(N)

This should work:

  ls {/tmp/somedir/gh,./gh}(N)

Note that you'll get listing for the current directory if there are no matches.

Roman.



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