It is just awesome that I stumbled upon this post. I remember previously I had faced similar issue while running a command like
find . -name *.gradle | blah blah
Instead of finding the root cause, I by-passed it by find . | grep "\.gradle" | blah blah
It just feels great to now connect the dot and know the real reason for the issue.