delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/04/04:57:42

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
From: FischRon DOT external AT infineon DOT com
To: elfyn-cygwin AT exposure DOT org DOT uk, cygwin AT cygwin DOT com
Message-ID: <9843A649BAD7FB4686F6FCBC840D600E08036A25@mucse001.eu.infineon.com>
Subject: RE: setup does not create /etc/profile
Date: Wed, 4 Jun 2003 10:57:24 +0200
MIME-Version: 1.0

>> There is another strange things: When I start bash (by 
>clicking on the
>icon
>> on my Windows desktop), by $HOME/.bashrc is not executed (but when I
>invoke
>> a subshell, .bashrc is sourced). Further, my 
>$HOME/.bash_profile is not
>> sourced. Should I post this
>> as separate bug on the mailing list?
>
>How are you invoking `bash'? If you want your shell to be a 
>login shell you
>have to pass the '--login' option to `bash'.

OK, I resolved this one: After the re-install, my .bash_profile is executed;
and since a click
to the cygwin icon executes /cygwin.bat, which in
turn does a 

	cygwin --login

it explains why .bashrc is not executed.

Ronald

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