This is the mail archive of the cygwin 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]

Re: How do I make scripts my PC executable


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

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             ebb9@byu.net
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

iD8DBQFG2AUP84KuGfSFAYARAodkAJ47Fk/5jL7bl1Dbf1e7UNVG5FnmMwCfeHU4
ODnZoHyH/weynFfhwFzwQy4=
=s2mm
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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