delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/21/07:06:06

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: r <r DOT trev_ AT inwind DOT it>
Subject: Re: bash load
Date: Mon, 21 Jul 2008 11:05:29 +0000 (UTC)
Lines: 33
Message-ID: <slrng88rbp.1ao.r.trev_@ccdomini-06.fastwebit.ofc>
References: <loom DOT 20080718T135836-836 AT post DOT gmane DOT org> <f60fe000807180707g6f4ca48dx3f98f66db2bc588b AT mail DOT gmail DOT com> <loom DOT 20080718T142229-58 AT post DOT gmane DOT org> <20080718145935 DOT GA18170 AT ednor DOT casa DOT cgf DOT cx>
Mime-Version: 1.0
User-Agent: slrn/pre0.9.9-112/mm/ao (Win32)
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

On 2008-07-18, Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com> wrote:
> 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
>

great, its done

rgrd
r


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