Click to See Complete Forum and Search --> : Messed up path variable


Dru Lee Parsec
01-03-2002, 01:19 PM
Hi folks:

I've installed Mandrake 8.1 and I'm seeing some really bizzare stuff in my path statement. For example, if I type

cat $PATH

I see

/usr//bin::/usr/bin:/usr/bin/games [and so on]

Notice the double slashes and colons in the first path entry.

I've checked /etc/profile ~/.bash_profile ~/.bashrc and one other file in /etc/ ( I think it was something like /etc/.bashrc ) and I can't find where that fubar'd path is coming from. (Oh yeah, I also checked rc.local)

However, inside /etc/profile I can see the /usr/bin/games path being added so whatever is adding that messed up path is happening right before /etc/profile is processed.

Any ideas where that odd path could be coming from? I've just about got my Linux box back up and this is one of the last things I need to tweak.

Thanks

slapNUT
01-03-2002, 02:00 PM
You could try this as root:
cat /etc/*|grep 'PATH='