[ITA] - base-files

David Sastre d.sastre.medina@gmail.com
Thu Jan 6 21:24:00 GMT 2011

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.


> 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?


> > 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


New package available at:



Huella de clave primaria: 0FDA C36F F110 54F4 D42B  D0EB 617D 396C 448B 31EB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20110106/76095e1f/attachment.sig>

More information about the Cygwin-apps mailing list