delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD,TW_TX |
X-Spam-Check-By: | sourceware.org |
From: | Kevin Layer <layer AT known DOT net> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: startxwin started bash does not read .bashrc or .bash_profile |
In-reply-to: | <512D7040.7080905@gmail.com> |
References: | <15470 DOT 1361923720 AT relay DOT known DOT net> <512D7040 DOT 7080905 AT gmail DOT com> |
Comments: | In-reply-to Arthur Tu <arthur DOT jim DOT tu AT gmail DOT com> message dated "Wed, 27 Feb 2013 10:32:32 +0800." |
Date: | Tue, 26 Feb 2013 19:20:59 -0800 |
Message-ID: | <26949.1361935259@relay.known.net> |
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 |
Arthur Tu wrote: >> On 2/27/2013 8:08 AM, Kevin Layer wrote: >> > If I put this into .startxwinrc: >> > >> > mintty /usr/bin/bash.exe --login -i >> > >> > the resulting shell does not read .bash_profile. If I put >> > >> > mintty /usr/bin/bash.exe -i >> > >> > it doesn't read .bashrc. >> > >> > >> > I've been beating my head against this wall for hours, over a few >> > days. I've googled my ass off, but I can't find anyone that's having >> > the same problem. >> > >> > >> > My ultimate goal is to use ssh-agent/ssh-add to make life easier, but >> > it requires my .bashrc to be sourced (.bash_profile merely sources >> > .bashrc). >> > >> > >> > Thanks. >> > >> > >> ## .bash_profile >> if [ -f "${HOME}/.bashrc" ] ; then >> source "${HOME}/.bashrc" >> fi >> >> What do you mean? Isn't this enough? It is not. As I said, without --login, when .bashrc would be loaded directly... it is *not*. This should be pretty easy for someone to test. Does it work for anyone else, as I've described? I'm up to date on my installation as of today. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |