[gentoo-user] Re: Where does sudo get the PATH ?

2012-10-23 Thread Nicolas Richard
Nicolas Richard theonewiththeevill...@yahoo.fr writes: I don't understand where sudo finds the value for the PATH env variable. Finally, I found where the problem lied. Recall that my problem was the following : I had a path in `sudo env | grep ^PATH' which did not seem to originate from any

[gentoo-user] Re: Where does sudo get the PATH ?

2012-10-12 Thread Nicolas Richard
Pandu Poluan pa...@poluan.info writes: Maybe it's building the PATH not explicitly... something like : PATH=$PATH;/usr/local/texlive/$SOME_VARIABLE/and/so/forth Try grepping for texlive/\$ I tried, but the results are always pointing to the (correct) 2012 version. I paste the result

[gentoo-user] Re: Where does sudo get the PATH ?

2012-10-11 Thread Nicolas Richard
Joost Roeleveld jo...@antarean.org writes: On Wednesday, October 10, 2012 04:57:50 PM Nicolas Richard wrote: In my homedir: .bash_profile loads .bashrc .bashrc says export PATH=~/bin/overrideglobal:${PATH}:~/bin (and defines some aliases) Does it load any global default? No. Here are the

Re: [gentoo-user] Re: Where does sudo get the PATH ?

2012-10-11 Thread Pandu Poluan
On Oct 11, 2012 9:29 PM, Nicolas Richard theonewiththeevill...@yahoo.fr wrote: Joost Roeleveld jo...@antarean.org writes: On Wednesday, October 10, 2012 04:57:50 PM Nicolas Richard wrote: In my homedir: .bash_profile loads .bashrc .bashrc says export

[gentoo-user] Re: Where does sudo get the PATH ?

2012-10-11 Thread Nicolas Richard
Pandu Poluan pa...@poluan.info writes: A bit desperate, but try : grep -R texlive/2011 /etc/* I tried that already youngfrog@geodiff-mac3 ~ $ sudo grep -r texlive/2011 /etc youngfrog@geodiff-mac3 ~ $ sudo grep -r texlive/2011 ~root /root/.bash_history:cd /usr/local/texlive/2011

Re: [gentoo-user] Re: Where does sudo get the PATH ?

2012-10-11 Thread Pandu Poluan
On Oct 11, 2012 11:54 PM, Nicolas Richard theonewiththeevill...@yahoo.fr wrote: Pandu Poluan pa...@poluan.info writes: A bit desperate, but try : grep -R texlive/2011 /etc/* I tried that already youngfrog@geodiff-mac3 ~ $ sudo grep -r texlive/2011 /etc youngfrog@geodiff-mac3 ~ $ sudo

Re: [gentoo-user] Re: Where does sudo get the PATH ?

2012-10-10 Thread J. Roeleveld
On Tue, October 9, 2012 5:03 pm, Nicolas Richard wrote: Joost == J Roeleveld jo...@antarean.org writes: Joost Nicolas Richard theonewiththeevill...@yahoo.fr wrote: Here is the output of the relevant (at least I thought they were) commands. Can somebody explain to me why I still

Re: [gentoo-user] Re: Where does sudo get the PATH ?

2012-10-10 Thread J. Roeleveld
On Tue, October 9, 2012 5:03 pm, Nicolas Richard wrote: Joost == J Roeleveld jo...@antarean.org writes: Joost Nicolas Richard theonewiththeevill...@yahoo.fr wrote: Here is the output of the relevant (at least I thought they were) commands. Can somebody explain to me why I still

[gentoo-user] Re: Where does sudo get the PATH ?

2012-10-10 Thread Nicolas Richard
Joost == J Roeleveld jo...@antarean.org writes: Joost And, what is in the .bash_profile and .bashrc files in your Joost homedir and in root's homedir? In my homedir: .bash_profile loads .bashrc .bashrc says export PATH=~/bin/overrideglobal:${PATH}:~/bin (and defines some aliases) In

Re: [gentoo-user] Re: Where does sudo get the PATH ?

2012-10-10 Thread Joost Roeleveld
On Wednesday, October 10, 2012 04:57:50 PM Nicolas Richard wrote: Joost == J Roeleveld jo...@antarean.org writes: Joost And, what is in the .bash_profile and .bashrc files in your Joost homedir and in root's homedir? In my homedir: .bash_profile loads .bashrc .bashrc says export

[gentoo-user] Re: Where does sudo get the PATH ?

2012-10-09 Thread Nicolas Richard
Joost == J Roeleveld jo...@antarean.org writes: Joost Nicolas Richard theonewiththeevill...@yahoo.fr wrote: Here is the output of the relevant (at least I thought they were) commands. Can somebody explain to me why I still have /usr/local/texlive/*2011*/bin/i386-linux in the