1 |
>>>>> "Joost" == J Roeleveld <joost@××××××××.org> writes: |
2 |
|
3 |
Joost> Nicolas Richard <theonewiththeevillook@×××××.fr> wrote: |
4 |
>> Here is the output of the relevant (at least I thought they were) |
5 |
>> commands. Can somebody explain to me why I still have |
6 |
>> /usr/local/texlive/*2011*/bin/i386-linux in the first sudo output |
7 |
|
8 |
>> youngfrog@geodiff-mac3 ~ $ sudo bash -c 'echo $PATH' |
9 |
>> /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/local/texlive/2011/bin/i386-linux |
10 |
|
11 |
>> youngfrog@geodiff-mac3 ~ $ grep -v '^#\|^$' /etc/environment |
12 |
>> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.3:/usr/local/texlive/2012/bin/i386-linux:/root/bin |
13 |
|
14 |
Joost> I can see several /usr/local/... paths in your |
15 |
Joost> /etc/environment. |
16 |
|
17 |
|
18 |
Hello Joost, |
19 |
|
20 |
Yes, I see them too, but they are pointing to the more recent 2012 |
21 |
release of texlive, not the older 2011 one. What I don't understand is |
22 |
where /sudo/ finds the environment when called without the "-i" option |
23 |
(and in particular, that entry for texlive 2011). The manpage seems to |
24 |
say that it simply uses the current environment (quoting the manpage : |
25 |
"Note, however, that the actual PATH environment variable is not |
26 |
modified and is passed unchanged to the program that sudo executes.") |
27 |
but that does not seem right. |
28 |
|
29 |
-- |
30 |
N. |