delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/31/08:10:05

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 AT byu DOT 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 AT cygwin DOT com
Subject: Re: How do I make scripts my PC executable
References: <12391292 DOT post AT talk DOT nabble DOT com> <005801c7eabb$cd519bd0$0a00a8c0 AT a64x23800p> <46D6462D DOT 1020203 AT holdenweb DOT com> <003401c7eb12$1bb53e70$0a00a8c0 AT a64x23800p> <fb6uq2$fa9$1 AT sea DOT gmane DOT org> <001601c7eb2d$986d63f0$0a00a8c0 AT a64x23800p> <46D703CB DOT 7090605 AT holdenweb DOT com> <003501c7eb8b$8cb56c70$0a00a8c0 AT a64x23800p> <fb8am1$8ff$1 AT sea DOT gmane DOT org>
In-Reply-To: <fb8am1$8ff$1@sea.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT byu DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019