public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: bash load
Date: Fri, 18 Jul 2008 14:59:00 -0000	[thread overview]
Message-ID: <20080718145935.GA18170@ednor.casa.cgf.cx> (raw)
In-Reply-To: <loom.20080718T142229-58@post.gmane.org>

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/

  reply	other threads:[~2008-07-18 14:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-18 14:02 r
2008-07-18 14:07 ` Mark J. Reed
2008-07-18 14:56   ` r
2008-07-18 14:59     ` Christopher Faylor [this message]
2008-07-18 23:13       ` r
2008-07-21 11:06       ` r
2008-07-18 14:10 ` Greg Chicares

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080718145935.GA18170@ednor.casa.cgf.cx \
    --to=cgf-use-the-mailinglist-please@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).