X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Fri, 18 Jul 2008 10:59:35 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: bash load
Message-ID: <20080718145935.GA18170@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <loom.20080718T135836-836@post.gmane.org> <f60fe000807180707g6f4ca48dx3f98f66db2bc588b@mail.gmail.com> <loom.20080718T142229-58@post.gmane.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <loom.20080718T142229-58@post.gmane.org>
User-Agent: Mutt/1.5.16 (2007-06-09)
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 Fri, Jul 18, 2008 at 02:56:05PM +0000, r wrote:
>
>> But the short answer is that bash reads either .bashrc (non-login
>> shell) or .bash_profile (login shell), but not both.  If you want the
>> stuff in your .bashrc to be loaded in a login shell, you need to
>> source it explicitly inside your .bash_profile via something like
>> this:
>> 
>> . "${HOME}"/.bashrc
>> 
>> Also make sure that the .bash files are in your actual home directory,
>> which is usually not /home but /home/YourUserName...
>> 
>
>
>Ok, it seems is solved putting .bash_profile in my $HOME dir.
>But when I lunch cygwin before to appear bash login it appares
>error messages :
>
>bash: $'\r': command not found   

You edited the file with an editor that adds CRLF line endings.

Use d2u to remove the "\r"s.

cgf

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

