[UPLOAD] base-file 3.6-1

Eric Blake ebb9@byu.net
Fri Aug 5 01:46:00 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Igor Pechtchanski on 8/4/2005 10:09 AM:
> What if the user has to set an environment variable for
> /etc/profile.d/bash-completion.sh to run?  You could check for that
> environment variable in /etc/profile.d/bash-completion.sh and exit if it's
> not set.  And it's easier than editing their .bashrc...

The env variable would have to be set before bash starts execution, since
/etc/profile finishes before the user's ~/.bashrc starts.

> 
> BTW, one drawback of the /etc/profile.d approach is that it only works for
> login shells.

True enough.  And bash only looks at ~/.bashrc for non-login interactive
shells, nothing else.  So I guess we are stuck with telling users to edit
~/.bashrc no matter what.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC8sUE84KuGfSFAYARAmkeAKChzNPuruunoQzyOEBm1a4qM2SnowCgw2x3
X3n6ouygRjClVv48xGFIdfE=
=qCsy
-----END PGP SIGNATURE-----



More information about the Cygwin-apps mailing list