delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/12/06:03:09

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <524328.20503.qm@web34505.mail.mud.yahoo.com>
References: <244882 DOT 68384 DOT qm AT web34508 DOT mail DOT mud DOT yahoo DOT com> <4B741CEB DOT 6070706 AT towo DOT net> <1ef5a52f1002110730v4325a8a0qd8e371019530a5da AT mail DOT gmail DOT com> <490452 DOT 20994 DOT qm AT web34508 DOT mail DOT mud DOT yahoo DOT com> <e75034cabf80ff8bc51091d71fa4bfbb DOT squirrel AT mail DOT morrison DOT mine DOT nu> <683244 DOT 21792 DOT qm AT web34501 DOT mail DOT mud DOT yahoo DOT com> <21bd2922656357a6867cb90a515cf7fe DOT squirrel AT mail DOT morrison DOT mine DOT nu> <65858 DOT 63922 DOT qm AT web34502 DOT mail DOT mud DOT yahoo DOT com> <d265265650da9730b185c534a8b5bad7 DOT squirrel AT mail DOT morrison DOT mine DOT nu>
Date: Fri, 12 Feb 2010 03:02:50 -0800 (PST)
From: Neil Blue <neilblue AT yahoo DOT com>
Reply-To: Neil Blue <neilblue AT yahoo DOT com>
Subject: Re: .bashrc file not run
To: John Morrison <john AT morrison DOT mine DOT nu>, cygwin AT cygwin DOT com
In-Reply-To: <d265265650da9730b185c534a8b5bad7.squirrel@mail.morrison.mine.nu>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

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 AT morrison DOT mine DOT nu>
To: cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019