> I'd check all those files and the $SHELL variable just to make sure.
/bin/bash
Ok, that looks good.
> login shell:: /etc/profile, ~/.bash_profile, ~/.bash_login, ~/.profle
> interactive shell:: ~/.bashrc
OK that’s where the confusion starts. The bash documentation says
/etc/profile first, then takes the first in order, starting with
~/.bash_profile, which I have.
Testing for both login and interactive, I found I have both. Possible? So
~/.bashrc seems to be doing something I’m not wanting.
It is still unclear weather you're using an interactive or a login shell.
Let's check that first:
[[ $- == *i* ]] && echo 'Interactive' || echo 'Not interactive'
shopt -q login_shell && echo 'Login shell' || echo 'Not login shell'
Next stop: The RVM error message.
I suspekt that your ~/.bashrc is sourcing ~/.bash_profile, or vice versa. It
could therefore be that RVM is sourced twice. Please run:
grep source ~/.bashrc ~/.bash_profile
`which ruby`
Used to be outside of the .rvm directory. Now it’s fixed.
> `which gem`
/usr/bin/gem
> `which irb`
/usr/bin/irb
> Perhaps some tool is missing, and thus one from /usr/bin gets picked up.
It seems the latter two are indeed just that in new sessions. Should this
be different?
Yes, it should basically look like this:
[eveith@basileia:~]% rvm list
rvm rubies
=* ruby-2.1.5 [ x86_64 ]
ruby-2.2.0 [ x86_64 ]
# => - current
# =* - current && default
# * - default
[eveith@basileia:~]% which ruby; which irb; type gem
/home/eveith/.rvm/rubies/ruby-2.1.5/bin/ruby
/home/eveith/.rvm/rubies/ruby-2.1.5/bin/irb
gem is a shell function
This is what I get in a new shell session, without any priour call to RVM. I'm
also running an interactive, but not a login shell.
We should get that PATH-related error message cleared. Check your ~/.bash*
files just as I wrote. If you want, you can upload them on a pastebin/github
gist and let me have a look at it.
Eric, thanks for the continued attention. I appreciate it.
You're welcome!
--- Eric
···
On Thursday 16 April 2015 17:28:58, you wrote: