[SOLVED] edit to .bashrc makes other directories executable, not just ~/bin
by amikoyan from LinuxQuestions.org on (#5G7R4)
I added this to my .bashrc
Code:. /etc/profile
PATH=$PATH:~/binexpecting it would just cause ~/bin to allow files to be executed. However, it has allowed me to execute files in other directories located in the home directory.
I also tried adding this to .bashrc (not at the same time):
Code:export PATH=~/bin:"$PATH"with the same result.
I just want ~/bin to be able to allow files to be executed


Code:. /etc/profile
PATH=$PATH:~/binexpecting it would just cause ~/bin to allow files to be executed. However, it has allowed me to execute files in other directories located in the home directory.
I also tried adding this to .bashrc (not at the same time):
Code:export PATH=~/bin:"$PATH"with the same result.
I just want ~/bin to be able to allow files to be executed