If your filenames might have spaces in them, then I would recommend doing it like this instead:
Code:
find . -print0 -type f -iname '*.[chly]' -or -iname '*.cpp' | xargs -0 ctags
Furthermore if performance isn't an issue it is better to let
ctags decide whether the content is taggable rather than filtering on filenames, by simply doing:
Code:
find . -print0 -type f | xargs -0 ctags