May 1st, 2013

proof that Ruby is evil and should never be used !

On a NORMAL SYSTEM :

ballison@ubuntu:~$ type cd
cd is a shell builtin

SYSTEM WITH RUBY INSTALLED:

[root@pbd /tmp] type cd
cd is a function
cd ()
{
if builtin cd "$@"; then
[[ -n "${rvm_current_rvmrc:-}" && "$*" == "." ]] && rvm_current_rvmrc="" || true;
__rvm_do_with_env_before;
__rvm_project_rvmrc;
__rvm_after_cd;
__rvm_do_with_env_after;
return 0;
else
return $?;
fi
}

So Ruby is doing bad things to the cd command.