* - , -R - . chmod * .
Put the case where foo0.cgi and foo1.cgi are directory contents. If you type chmod -R o+r *.cgi, then it chmodtakes the characters -R, o + r, foo0.cgi and foo1.cgi as arguments.
What you want to do can be easily done:
find . -iname '*.cgi' | xargs chmod 755
source
share