help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: does /etc/profile get sourced also when .profile exists ?


From: Alex fxmbsw7 Ratchev
Subject: Re: does /etc/profile get sourced also when .profile exists ?
Date: Mon, 26 Jul 2021 16:10:42 +0200

okay, cool, :)

On Mon, Jul 26, 2021, 16:09 Tim Visher <tim.visher@gmail.com> wrote:

> On Mon, Jul 26, 2021 at 9:57 AM Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>
> wrote:
>
>> ..
>>
>
> The exact set of init/dot files that are sourced when you start a shell
> depends on quite a few factors, but I think there are no circumstances that
> would source `~/.profile` without _first_ sourcing `/etc/profile`, since
> `/etc/profile` is always sourced by bash when bash is invoked as a login
> shell.
>
> This is all covered in extensive detail in
> https://mywiki.wooledge.org/DotFiles, if you'd like to read up on it.
>
> --
>
> In Christ,
>
> Timmy V.
>
> https://blog.twonegatives.com
> http://five.sentenc.es
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]