This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ITA] - base-files


On 7 March 2011 13:05, Andy Koppe wrote:
> On 6 March 2011 17:19, David Sastre wrote:
>>> - Not that it makes a great difference, but I think the interactive
>>> checks should be done before sourcing /etc/bash.bashrc and ~/.bashrc
>>> from /etc/profile and ~/.profile, respectively, rather than doing it
>>> in the rc files. That would save opening the rc files in
>>> non-interactive login shells and unnecessary checks in interactive
>>> non-login shells.
>>
>> That's true, but the check also serves the purpose of avoiding those
>> files to be sourced in non-interactive sesions, regardless who's
>> calling.
>
> You mean from users' scripts? That's up to them, isn't it? The
> important thing is that it isn't sourced automatically for
> non-interactive sessions.

On third thoughts, there is a very good reason for doing the
interactive checks in the bashrc files rather than the profile files:
the ~/.bash_profile from base-files 3.9 sources them both
unconditionally, and existing users will continue to use that.
Objection withdrawn.

Andy


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]