X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <490452.20994.qm@web34508.mail.mud.yahoo.com>
References: <244882.68384.qm@web34508.mail.mud.yahoo.com>   <4B741CEB.6070706@towo.net> <1ef5a52f1002110730v4325a8a0qd8e371019530a5da@mail.gmail.com>
Date: Thu, 11 Feb 2010 08:28:29 -0800 (PST)
From: Neil Blue <neilblue@yahoo.com>
Reply-To: Neil Blue <neilblue@yahoo.com>
Subject: Re: .bashrc file not run
To: Csaba Raduly <rcsaba@gmail.com>, cygwin@cygwin.com
In-Reply-To: <1ef5a52f1002110730v4325a8a0qd8e371019530a5da@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

Great,

Thank you both. I now have .bash_profile calling ~/.bashrc.

Just had a look at the ~/.profile script on my linux box and I can see where it is making the call to the local ~/.bashrc file

...
# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi
...

I guess I am too used to having this already set-up for me.

Thanks again for the help.

Cheers
Neil



----- Original Message ----
From: Csaba Raduly <rcsaba@gmail.com>
To: cygwin@cygwin.com
Sent: Thu, February 11, 2010 3:30:15 PM
Subject: Re: .bashrc file not run

On Thu, Feb 11, 2010 at 4:06 PM, Thomas Wolff  wrote:
> On 11.02.2010 15:55, Neil Blue wrote:
>
> By design (and documentation), bash runs *only* .profile (and /etc/profile)
> if started as a "login shell".

Not quite.
From "info bash" , Node: Bash Startup Files

When Bash is invoked as an interactive login shell, or as a
non-interactive shell with the `--login' option, it first reads and
executes commands from the file `/etc/profile', if that file exists.
After reading that file, it looks for `~/.bash_profile',
`~/.bash_login', and `~/.profile', in that order, and reads and
executes commands from the first one that exists and is readable.


Note to Neil: .bashrc_profile is ignored by bash. You want .bash_profile

Hope this helps.
-- 
Life is complex, with real and imaginary parts

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


      

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

