Click to See Complete Forum and Search --> : dot slash problem


jfshadow
11-23-2001, 09:30 PM
Hello All:

Does anyone have any idea how to configure SuSE to keep from having to enter ./ before an executable?

I tried exporting ${HOME}/bin:.:$PATH in /etc/profile.local but that didn't work.

X_console
11-24-2001, 02:11 AM
Add the following to your ~/.bash_profile:

export PATH=$PATH:.

Save, and then type source ~/.bash_profile

syn
11-24-2001, 01:21 PM
or if its just a simple program you could just move it to /bin or /usr/bin X_console's
answer is better though

jfshadow
11-24-2001, 09:50 PM
Thanks for your input. I'll try putting it in my ~/.bash_profile. I thought having it in /etc/profile.local would work though. That's wierd.

Thanks again.

DMR
11-24-2001, 10:31 PM
Originally posted by jfshadow:
<STRONG>Thanks for your input. I'll try putting it in my ~/.bash_profile. I thought having it in /etc/profile.local would work though. That's wierd.

Thanks again.</STRONG>Depending on how you access an account, either ~/.bash_profile or /etc/profile will be sourced. The same is true of ~/.bashrc vs. /etc/bashrc. I forget the details at the moment.

jfshadow
11-27-2001, 10:25 PM
I tried adding export PATH=$PATH:. in .bash_profile but that didn't work either.

I'm running SuSE 7.0 kernel 2.2xx.

jfshadow
11-28-2001, 09:00 PM
Has anybody else heard of this problem before that wasn't able to be fixed with the above mentioned fixes?

EyesWideOpen
11-29-2001, 11:45 AM
Does this happen with all executables or just certain programs?

bdg1983
11-29-2001, 12:46 PM
I just added ./ to PATH in /etc/profile

PATH="/bin:/usr/bin:/scripts:./"