X-Spam-Check-By: sourceware.org
Message-ID: <46D8050F.4070808@byu.net>
Date: Fri, 31 Aug 2007 06:09:51 -0600
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: How do I make scripts my PC executable
References: <12391292.post@talk.nabble.com> <005801c7eabb$cd519bd0$0a00a8c0@a64x23800p> <46D6462D.1020203@holdenweb.com> <003401c7eb12$1bb53e70$0a00a8c0@a64x23800p> <fb6uq2$fa9$1@sea.gmane.org> <001601c7eb2d$986d63f0$0a00a8c0@a64x23800p> <46D703CB.7090605@holdenweb.com> <003501c7eb8b$8cb56c70$0a00a8c0@a64x23800p> <fb8am1$8ff$1@sea.gmane.org>
In-Reply-To: <fb8am1$8ff$1@sea.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

