-   Linux - Distributions (
-   -   How to remove a "single dot" entry in $PATH on openSuSe 11.4 ? (

giui_977 12-03-2012 12:42 PM

How to remove a "single dot" entry in $PATH on openSuSe 11.4 ?
Hello @ all !

Iīm using openSuSE 11.4 and would like to remove the entry " . " in $PATH.
I donīt know how it came in there :(...

by searching several files in the /etc dir like bash.bashrc, profile... i did not find the entry for the single dot ( that is to make any programs / scripts executable from the working directory)

May anybody help me up to find the entry that loads the . in $PATH ?



schneidz 12-03-2012 01:08 PM

you can maybe look in the home dir for files like .profile, .bash_profile, .bashrc, ...

else maybe you can re-assign $PATH by adding a line to the end of your .bash_profile.

Habitual 12-03-2012 01:38 PM

per the man page:
check /etc/profile

I found one, YMMV:

# For non-root users, add the current directory to the search path:
if [ ! "`id -u`" = "0" ]; then

linosaurusroot 12-03-2012 01:58 PM

See /etc/profile.d/ which reads from /etc/sysconfig/suseconfig


giui_977 01-04-2013 11:28 AM

Exactly that was it. In /etc/sysconfig/suseconfig they ( the suse people) say that was the standard setting since years. I didn`t know that.

Thank you very much for all replies !!!


All times are GMT -5. The time now is 02:20 AM.