This is the mail archive of the
mailing list for the Cygwin project.
Re: How do I make scripts my PC executable
-----BEGIN PGP SIGNED MESSAGE-----
According to Andrew DeFaria on 8/30/2007 11:58 PM:
> I'm always amazed how little people know about their own startup
> environments and the reluctance to learn more about them thus improving
> their environment and productivity. The -l option to bash *should*
> source /etc/profile and your ~/.bash_profile. Additionally it should
> source your .bashrc - if any of these are present.
Actually, please reread 'man bash'. In a login shell, bash only directly
sources /etc/profile, then the first of ~/.bash_profile, ~/.bash_login, or
~/.profile that exists. Therefore, if you want ~/.bashrc sourced in login
shells, YOU must ensure that one of the other files sources it.
Don't work too hard, make some time for fun as well!
Eric Blake firstname.lastname@example.org
volunteer cygwin bash maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html