X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20110406100426.GA5859@jethro.local.lan>
References: <infv5a$mi2$1@dough.gmane.org>	<4D9B913F.3070303@cygwin.com>	<BANLkTimR8rSTXZFg+gPjpOmtcHiM5Gn7Mg@mail.gmail.com>	<20110406100426.GA5859@jethro.local.lan>
Date: Thu, 7 Apr 2011 07:00:54 +0100
Message-ID: <BANLkTimaqXjh-cqaGgQ1JsKg4ZSWtdHZ9A@mail.gmail.com>
Subject: Re: .profile not sourced?
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
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

On 6 April 2011 11:04, David Sastre wrote:
>> > On 4/5/2011 4:47 PM, philippe roux wrote:
>> >> I have a file ~/.profile which contains some alias like
>> >> and ./bash_profile file containing the lines
>
> When using bash as a login shell, the existence of .bash_profile
> prevents from .profile being sourced.

True, but Philippe said he had this in .bash_profile:

# source the users profile if it exists
if [ -f "${HOME}/.profile" ] ; then
 source "${HOME}/.profile"
fi

Might be an idea for base-files actually, allowing for bash-specific
settings in .bash_profile while having settings common across shells
in .profile.

Andy

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

