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

Re: Brace expansion vs. TAB



On 12/6/19, Dominik Vogt <dominik.vogt@xxxxxx> wrote:
> (Using zsh 5.3.1 on Debian.)
>
> In a directory with c++ sources:
>
>   $ ls *
>   foo.cpp  foo.h
>
> Now,
>
>   $ grep ... *.{hpp,cpp}<TAB>
>
> Q2:
>
> What I really want to have is a simple way to get all c and c++
> filenames in a singel pattern, like

*.(hpp|cpp) or for that matter, *.[hc]pp

-- 
Mikael Magnusson



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