.bashrc not working (and yes I've read the FAQ etc as you'll see)

Igor Pechtchanski pechtcha@cs.nyu.edu
Fri Feb 18 18:43:00 GMT 2005


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

> "Steve Mayes" <mayes.s@XXXXX.XXX.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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/



More information about the Cygwin mailing list