delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/11/07:30:38

X-Spam-Check-By: sourceware.org
Message-ID: <43EDD8DD.1020008@gmail.com>
Date: Sat, 11 Feb 2006 12:30:21 +0000
User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923)
MIME-Version: 1.0
To: "O. Olson" <olson_ord AT yahoo DOT it>
CC: cygwin <cygwin AT cygwin DOT com>
Subject: Re: Another .bashrc Question
References: <20060210223757 DOT 26265 DOT qmail AT web26101 DOT mail DOT ukl DOT yahoo DOT com>
In-Reply-To: <20060210223757.26265.qmail@web26101.mail.ukl.yahoo.com>
From: Dave <kilroyd AT googlemail DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

O. Olson wrote:
> 	If I log in (either locally and remotely) I get the
> bash prompt, but the .bashrc is not sourced. If I then
> type “bash” on the command line then this file gets
> sourced. 

`man bash`

Check the Invocation chapter. A (bash) login shell is not expected to 
source .bashrc, although it is commonly added to either /etc/profile or 
~/.bash_profile. IIRC the /etc/profile supplied by the basefiles package 
used to source .bashrc

Other invocations do source .bashrc directly. I won't attempt to 
summarise the detail here.

Dave.

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