Why do I get duplicated entries in my $PATH?
Posted
by reprogrammer
on Super User
See other posts from Super User
or by reprogrammer
Published on 2010-04-28T23:21:43Z
Indexed on
2010/04/28
23:27 UTC
Read the original article
Hit count: 320
I'm using Ubuntu 9.10 (karmic). And, my ~/.pam_environment
looks like the following.
PATH DEFAULT=${PATH}:~/Adobe/Reader9/bin:~/texlive/2009/bin/x86_64-linux
GIT_EDITOR DEFAULT=vim
MANPATH DEFAULT=${MANPATH}:~/texlive/2009/texmf/doc/man
INFOPATH DEFAULT=${INFOPATH}:~/texlive/2009/texmf/doc/info
But, echo $PATH
returns me duplicated entries as the following.
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:~/apps/Adobe/Reader9/bin:~/apps/texlive/2009/bin/x86_64-linux:~/apps/Adobe/Reader9/bin:~/apps/texlive/2009/bin/x86_64-linux
I've tried replacing DEFAULT
by OVERRIDE
in my ~/.pam_environment
file. But, that didn't help.
Does any one know what's wrong with my ~/.pam_environment
?
© Super User or respective owner