The other day I was on a RHEL7.1 system and I wanted to search for a specific word in the /usr/lib/systemd/system directory where all the systemd unit files are located. I used the grep command as usual. See what happened:
# cd /usr/lib/systemd/system
# grep After *
grep: invalid option -- '.'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Then, I tried on RHEL7.0, RHEL7.2, RHEL7.3 and got the same result. If I use the grep command in any other directory everything works fine. Who can tell me why I got this strange behavior?