> Date: Wed, 03 Sep 2014 11:04:18 -0500
> From: Bruce Dubbs <[email protected]>
> To: BLFS Development List <[email protected]>
> Subject: Re: [blfs-dev] LXDM: localization fixed but runlevel two different
> fixes [Was Re: ... bootscripts: . blfs/init.d]
>
.
.
> > (Hmmm. Depends of course on how are the startup files organised. Some
> > folks chain:
> > { /etc/profile (+) /etc/profile.d/ }
> > -- { ~/.profile | ~/.bash_profile | ~/.bash_login}
>
> The order here is defined by bash and ~/.profile is the last option.
> Also the syntax might be confused as a pipe. The actual sequence is:
>
> if [ -e ~/.bash_profile ]; then source ~/.bash_profile;
> elsif [ -e ~/.bash_login ]; then source ~/.bash_login;
> elsif [ -e ~/.profile ]; then source ~/.profile;
> fi
>
Yes, but so what. You're regurgitating bash code: whereas the above just
schematically shows what some folks do - the '|' wasn't meaning to imply
a partic ordering; and instead that some folks just choose to use only
one of the three items.
> > -- { ~/.bashrc }
>
> Depends if it's a login shell or not.
Yeah, but again so what: you're just regurg bash code/manpage.
> Of course is can be explicitly
> sourced from ~/.bash_profile. etc.
>
Yes that's precisely what the 'example of what some folks do' ... er, _says_.
> > -- { /etc/bashrc }
>
> Only used if explicitly called from another file (e.g. ~/.bashrc).
>
Ditto.
> > ; and at most perhaps call some parts of /etc/profile.d/ from the bashrc
> > stuff. But yes, I know that you're talking about what worked for you here.
>
> The things that need to be set from ~/.bashrc are aliases and PS1. The
> other unusual possibility is non-exported shell variables. ~/.bashrc is
> only automatically sourced for interactive subshells.
>
In what way does that relate to the post. Why are you bothering to write it.
> If the profile files are set up properly, then /etc/profile should only
> be called once at login. The issue is to make sure ldxm or other dm
> does indeed run it.
>
Ditto.
Bruce, I think you're just yet again completely failing to grasp the
simplest info in the likes of the post. You're almost over-thinking it.
rgds,
akh
> -- Bruce
>
--
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page