This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: .bashrc file not run


Yes it is all working now, as long as I don't use --login for bash.
I guess the failure to copy the skel/.bash_profile may have been the root of the problem.

Neil



----- Original Message ----
From: John Morrison <john@morrison.mine.nu>
To: cygwin@cygwin.com
Sent: Fri, February 12, 2010 9:58:04 AM
Subject: Re: .bashrc file not run

On Fri, February 12, 2010 9:51 am, Neil Blue wrote:
> I created the ~/.profile in response to the email from Csaba Raduly. the
> bash man page does say it will look for ~/.profile as well.

It does, but you can't expect default behaviour from a non default file! ;)

> The setup program creates some terminal links like:
>
> C:\cygwin\bin\run.exe /usr/bin/rxvt.exe -display 127.0.0.1:0 -tn
> rxvt-cygwin -e /bin/bash --login
>
> I just removed the --login option to preserve the results of ~/.bashrc,
> but then need to set up things like my prompt again as I loose the other
> automatic settings.
>
> This was a new cygwin install, downloaded a couple of days ago.
>
>
> I was trying to copy the skel/.bash_profile and got this:
>
> $ cp /etc/skel/.bash_profile ~/
> cp: not writing through dangling symlink `/home/blueneil/.bash_profile'

I've no idea why you got that - somebody with more knowledge than I should
be able to help...

> but
> cat /etc/skel/.bash_profile > ~/.bash_profile
> all works as expected and calls ~/.bashrc

So... all working now?

J.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


      

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]