From: "Nicolas Richard" <theonewiththeevillook@yahoo.fr>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: Where does sudo get the PATH ?
Date: Thu, 11 Oct 2012 16:25:46 +0200 [thread overview]
Message-ID: <871uh56q6t.fsf@yahoo.fr> (raw)
In-Reply-To: 2605336.yuE8B9dzFI@eve
Joost Roeleveld <joost@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 full files, omitting comments and empty lines :
youngfrog@geodiff-mac3 ~ $ grep -vH '^#\|^$' .bashrc .bash_profile
.bashrc:export PATH="~/bin/overrideglobal:${PATH}:~/bin"
.bashrc:if [[ $- != *i* ]] ; then
.bashrc: # Shell is non-interactive. Be done now!
.bashrc: return
.bashrc:fi
.bashrc:UPDATEGITREPO="~/TeX/ ~/BSSM/2011/notes-de-conf/ ~/org/ ~/BSSM/2012"
.bashrc:export UPDATEGITREPO
.bashrc:alias ll="ls -lA"
.bashrc:alias l="ls -CF"
.bashrc:alias cp="cp -i"
.bashrc:alias rm="rm -i"
.bashrc:alias mv="mv -i"
.bash_profile:[[ -f ~/.bashrc ]] && . ~/.bashrc
> In other words, what is in the environment when you are normally
> logged in?
Ok, I thought my original post contained it. In fact that was part of my
original post :
youngfrog@geodiff-mac3 ~ $ bash -c 'echo $PATH'
~/bin/overrideglobal:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.4:/usr/games/bin:/usr/local/texlive/2012/bin/i386-linux:~/bin
and I forgot to mention that it was the same as :
youngfrog@geodiff-mac3 ~ $ env | grep ^PATH
PATH=~/bin/overrideglobal:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.4:/usr/games/bin:/usr/local/texlive/2012/bin/i386-linux:~/bin
and yet the same as :
youngfrog@geodiff-mac3 ~ $ echo $PATH
~/bin/overrideglobal:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.4:/usr/games/bin:/usr/local/texlive/2012/bin/i386-linux:~/bin
Thanks for trying btw. I certainly did something really stupid to set
the path the first time, but can't see where.
N.
next prev parent reply other threads:[~2012-10-11 14:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-08 14:20 [gentoo-user] Where does sudo get the PATH ? Nicolas Richard
2012-10-09 5:11 ` J. Roeleveld
2012-10-09 15:03 ` [gentoo-user] " Nicolas Richard
2012-10-10 9:49 ` J. Roeleveld
2012-10-10 9:50 ` J. Roeleveld
2012-10-10 14:57 ` Nicolas Richard
2012-10-10 18:43 ` Joost Roeleveld
2012-10-11 14:25 ` Nicolas Richard [this message]
2012-10-11 16:24 ` Pandu Poluan
2012-10-11 16:50 ` Nicolas Richard
2012-10-11 17:24 ` Pandu Poluan
2012-10-12 8:55 ` Nicolas Richard
2012-10-23 9:26 ` Nicolas Richard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871uh56q6t.fsf@yahoo.fr \
--to=theonewiththeevillook@yahoo.fr \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox