delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/12/14:43:55

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 12 Apr 2004 14:43:28 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Hoss <ghodseh AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: .bashrc is ignored
In-Reply-To: <loom.20040412T155114-364@post.gmane.org>
Message-ID: <Pine.GSO.4.56.0404121438080.926@slinky.cs.nyu.edu>
References: <loom DOT 20040412T155114-364 AT post DOT gmane DOT org>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Mon, 12 Apr 2004, Hoss wrote:

> hi.
>
> I'm a newbie to cygwin and I'm trying to setup .bashrc to start when I
> launch a cygwin terminal (using rxvt in fact).  my .bashrc is ignored
> which I think is because the %HOME% environment variable is not set
> *before* I run bash/rxvt.  When I do set it, it simply causes bash to
> create new directories.  Basically I'm not sure whether %HOME% (a
> windows environment variable) should be set in Windows or POSIX format,
> and how to quote the string or escape spaces in either case - I'm trying
> to make sure my home directory is the same as my windows profile
> directory (done this) and that bash recognises this as the location to
> find .bashrc.
>
> Hoep someone can help!
>
> Thanks
> hoss

See <http://cygwin.com/faq/faq_4.html#SEC38>.  BTW, that entry should be
augmented with "bash --login" will execute .bash_profile instead of
.bashrc, as outlined in the 'INVOCATION' section of the bash manpage".

FWIW, to avoid surprises, my ~/.bash_profile is a symlink to ~/.bashrc.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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