On Sun, Dec 19, 2010 at 05:20:14PM +0000, Andy Koppe wrote: > On 14 December 2010 20:41, David Sastre wrote: > > On Fri, Dec 10, 2010 at 06:50:32AM +0000, Andy Koppe wrote: > > I'll try selective sourcing from /etc/profile e.g. bash sources > > *sh, and not *.zsh, and viceversa.
Done. > On a related note, due to the many possible combinations of old and > new startup files, double sourcing is a distinct possibility, e.g. due > to the current /etc/defaults/etc/skel/.bash_profile sourcing > /etc/bash.bashrc. Perhaps this should be addressed with guard > variables similar to include guards in C headers? Done. > > I learnt that enabling /etc/bash.bashrc to be sourced as a system-wide *rc > > file can be defined in a header file in the bash sources, and also > > /etc/bash.bash_logout, BTW. Forthcoming bash-4.1 will have SYS_BASHRC and SYS_BASH_LOGOUT enabled. > >> Wasn't there a patch for doing that switch without forks? > Found it. Daniel Colascione suggested the following at > http://cygwin.com/ml/cygwin/2010-11/msg00464.html: > - Detect the current shell by examining BASH_VERSION, ZSH_VERSION, and > so on, not by forking for the echo|tr|sed pipeline Done. New package available at: http://www-eco-lution.tv/cygwin/release/base-files/base-file-4.0-2.tar.bz2 http://www-eco-lution.tv/cygwin/release/base-files/base-file-4.0-2.tar.bz2.sig Regards. -- Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB
signature.asc
Description: Digital signature