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]

[ ATTN : bash mantainer ] Request to enable sys-wide conffiles


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 
I'd appreciate if this changes were kindly taken into consideration.

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)

Thanks and regards.

Huella de clave primaria: 0FDA C36F F110 54F4 D42B  D0EB 617D 396C 448B 31EB
--- config-top.h.orig	2010-12-13 21:23:31.000000000 +0100
+++ config-top.h	2010-12-13 21:24:05.000000000 +0100
@@ -73,10 +73,10 @@
 /* System-wide .bashrc file for interactive shells. */
-/* #define SYS_BASHRC "/etc/bash.bashrc" */
+#define SYS_BASHRC "/etc/bash.bashrc" 
 /* System-wide .bash_logout for login shells. */
-/* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */
+#define SYS_BASH_LOGOUT "/etc/bash.bash_logout" 
 /* Define this to make non-interactive shells begun with argv[0][0] == '-'
    run the startup files when not in posix mode. */

Attachment: signature.asc
Description: Digital signature

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