delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/18/10:36:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Fri, 18 Feb 2005 10:36:07 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "J. David Boyd" <dave AT adboyd DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: .bashrc not working (and yes I've read the FAQ etc as you'll see)
In-Reply-To: <81vf8pew3m.fsf@adboyd.com>
Message-ID: <Pine.GSO.4.61.0502181026310.1726@slinky.cs.nyu.edu>
References: <A88431D237D50D45A91A852D9FD861910A04EA AT adhr-exch01 DOT ucles DOT internal> <81vf8pew3m DOT fsf AT adboyd DOT com>
MIME-Version: 1.0

On Fri, 18 Feb 2005, J. David Boyd wrote:

> "Steve Mayes" <mayes DOT s AT XXXXX DOT XXX DOT XX> writes:

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>

> > .bashrc not working
> > [snip]
> > The --login and -i switches are used.

Stare at these two lines for a moment, and then read the "INVOCATION"
section of the bash manpage.

> > I even used the --rcfile switch and pointed it directly to my .bashrc
> > file at which point cygwin just bombs out.

What does "bombs out" mean, exactly?

> > I even made .bashrc executable using the command chmod +x (just in case)
> > but this changed none of the behaviour.   What am I missing.

The "INVOCATION" section of the bash manpage.

> I remember having some problem like this.  To get around it (I am the only
> user on this machine), I added the line
>
> . $HOME/.bashrc
>
> to the very end of /etc/profile.  It's probably not the 'right' way to do it,
> but who cares.  It works fine.

Well, the "official" way of doing this is to delete your ~/.bash_profile
and reinstall the "base-files" package (or simply "cp -p
/etc/defaults/etc/skel/.bash_profile ~").  Alternatively, you can simply
"ln -s ~/.bashrc ~/.bash_profile".
	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!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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