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: [ ATTN : bash mantainer ] Request to enable sys-wide conffiles


On 12/14/2010 01:43 PM, David Sastre wrote:
> Hello,
> 
> Regarding the ITA of base-files, I'm trying to define a consistent,
> system-wide configuration that doesn't need to rely in user-defined files, 
> as it's currently made, and at the same time, avoid as much as possible to 
> source some conf files from others.
> 
> I think that this could be achieved easier if /etc/bash.bashrc were enabled 
> at compile-time. A trivial patch to do that is attached. It would enable both 
> SYS_BASHRC and SYS_BASH_LOGOUT. 
> I'd appreciate if this changes were kindly taken into consideration.

Not a problem - I've just enabled these two defines for my upcoming
bash-4.1 build.

> 
> Also, I've seen that SSH_SOURCE_BASH is defined in
> bash-3.2.51-24.src.patch, but access through ssh with a bash shell
> as login shell doesn't seem to source ~/.bashrc. 
> 
> One related question: if SYS_BASHRC were enabled, would SSH_SOURCE_BASHRC try 
> to source /etc/bash.bashrc or ~/.bashrc? The coment in config-top.h only
> mentions the latter. (This is just curiosity)

I'd have to read the source code to say for sure; I haven't had time to
look closely yet.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


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