I am trying to setup Metasploit on osx 10.7, but I need to edit my
.bash_profile and I noticed something unusual to me. I have been reading about setting the environment variable on http://linux.die.net. I read the
.bash_profile stuff and the section on invocation. But, I don't understand why my
.bash_profile file looks like this (these are the only two statements in the file):
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin :/usr/X11/bin PATH=/usr/local/opt/ruby193/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/us r/sbin:/sbin:/usr/local/bin:/usr/X11/bin
Why are there two
I don't understand how bash works, so I read a little bit about that,
.bash_profile, and setting environment variables in a book by Newham & Rosenblatt called bash.
I think we are programming the shell's setup environment. But, from my programming experience I would think that the 1st PATH statement is just getting overwritten by the 2nd statement. I think the 2nd statement was created when I used an automated installation for ruby. The 2nd statement is the same as the 1st one, but it has the ruby directory at the beginning.
Can I just delete the 1st statement?