From: Callen Mascarenhas Date: 2008-12-24T04:11:49+09:00 Subject: Re: Error after install Hassan Schroeder wrote: > On Tue, Dec 23, 2008 at 9:53 AM, Callen Mascarenhas > wrote: > >> The reason I'm using the ". /usr/local/bin/irb" is because I have >> another company version of irb/ruby in /opt/third-party/bin/ and they >> have removed the 'gem' command. So I cannot install new features and >> play with Ruby. > > You've already been told: the '.' is wrong, whether it's './' or '. /' > -- so > don't use it. > > Entering /usr/local/bin/irb will use that exact version, and no, it > won't > change the result of `which irb` -- irrelevant. > > If you want to use your personal version all the time, change the PATH > defined in .bashrc (or wherever) to put /usr/local/bin *first*, or at > least > before /opt/third-party/bin. > > HTH, I guess I didn't really understand how the 'which' command worked. Thanks for making things clear for me. So out of curiosity, how come 'which' is pulling up the irb in /opt/third-party/bin?? Is it because that is the first one in PATH ??? I know this is a Unix question. But if someone can help, I can only be grateful :). -- Posted via http://www.ruby-forum.com/.