which -a ruby gives me
/usr/ruby
/usr/ruby
/usr/ruby
It gives the same path three times. Why does this happen?
|
|
Check your path. It's not that hard to end up with duplicates in it. Example:
This is because my /bin is a symlink to /usr/bin. Now:
Since /usr/bin is now in my $PATH twice, |
|||||
|
|
As the hint says, and quoting from the manual page, |
|||
|
|
|
Take a look at your path:
There are duplicate entries in your path (or ruby is installed several times in different locations). |
|||
|
|
|
Try
If you are getting the same output, then the problem is in your PATH. |
|||
|
|