public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Pandu Poluan <pandu@poluan.info>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Where does sudo get the PATH ?
Date: Thu, 11 Oct 2012 23:24:26 +0700	[thread overview]
Message-ID: <CAA2qdGUUTh8P0o9ydzbLBh_b+UVRwUVKnECqSKzRmMDfjAotLQ@mail.gmail.com> (raw)
In-Reply-To: <871uh56q6t.fsf@yahoo.fr>

[-- Attachment #1: Type: text/plain, Size: 2092 bytes --]

On Oct 11, 2012 9:29 PM, "Nicolas Richard" <theonewiththeevillook@yahoo.fr>
wrote:
>
> 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.
>

A bit desperate, but try :

grep -R "texlive/2011" /etc/*

Rgds,

[-- Attachment #2: Type: text/html, Size: 2784 bytes --]

  reply	other threads:[~2012-10-11 16:26 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
2012-10-11 16:24             ` Pandu Poluan [this message]
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=CAA2qdGUUTh8P0o9ydzbLBh_b+UVRwUVKnECqSKzRmMDfjAotLQ@mail.gmail.com \
    --to=pandu@poluan.info \
    --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