[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: defaultly made ./configure && make install path question
From: |
Alex fxmbsw7 Ratchev |
Subject: |
Re: defaultly made ./configure && make install path question |
Date: |
Sun, 14 Mar 2021 23:03:19 +0100 |
so it wont ever hit /usr/local/etc/profile ?
i know .c apps may use prefix or whatever to read their configs, or may
not, ..
im sorry for not stracing it but .. these computer crapps i cant be
comfortable with, i got computer-o-phobis
wherever i see i see stuff that aint supposed to be there cause its too bad
( aka not good enough )
no joy so
thats why i code, joy :)
On Sun, Mar 14, 2021 at 10:50 PM Greg Wooledge <greg@wooledge.org> wrote:
> On Sun, Mar 14, 2021 at 10:32:42PM +0100, Alex fxmbsw7 Ratchev wrote:
> > it installs to /usr/local/bin by default
> > i cp'ed it to /bin, as im a prefix whatever gcc make noob
> >
> > so my question
> > will it read /usr/local/etc/profile or both also /etc/profile but also in
> > local/
>
> Bash reads the same set of files regardless of where you put the binary.
> Programs don't know where they reside within your file system(s). They
> simply read the files that they've been programmed to read.
>
> See also <https://mywiki.wooledge.org/BashFAQ/028>.
>
> The files that bash reads are documented in the INVOCATION section of
> the manual.
>
> An interactive login shell reads /etc/profile if it exists. Then it
> reads one of the three files in your home directory (searching in the
> order specified in the manual, stopping at the first one which exists).
>
>