Issue
Whenever I try to use RVM on Ubuntu or one of it's derivatives, I get the following error:
grep: invalid option -- 'p'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
I checked type grep
, and got
grep is /bin/grep
.
So grep is not aliased.
Is this a known bug in RVM? If not, what else could be causing this behavior?
EDIT: This occurs when I source ~/.bash_profile
. I've gone and reproduced the behavior when I run just the RVM related part.
Solution
Remove the ps='ps ...'
from your config, like .bashrc, or execute unalias ps
and then run your RVM command.
Answered By - Washington Botelho Answer Checked By - Gilberto Lyons (WPSolving Admin)