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

Re: Brace expansion vs. TAB



On Sat, Dec 07, 2019 at 02:23:53PM +0100, Manuel Presnitz wrote:
> > > *.(hpp|cpp)
> > (...)
> > > or for that matter, *.[hc]pp
> >
> > Nope.  Doesn't match header files wit .h suffix.
>
> You can combine both suggestions to
>
> *.[hc](|pp|xx)
>
> which is a little bit shorter than *.(c|h|cpp|hpp|cxx|hxx)

Okay, but what I'm really missing no are global aliases that match
*parts* of words, so that

  alias -g '*.CH'='*.[ch](|xx|pp)'
  $ grep foo **/*.CH

works.  Or some way to preprocess the command line with a sed
script.

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt



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