delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-3.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,TW_TX |
X-Spam-Check-By: | sourceware.org |
X-Yahoo-SMTP: | u.JgLvyswBBMp9ZJJfsX14qmYb3T2ivhMAr6OupnxLpNQEFZ9g-- |
Message-ID: | <512E489F.8060700@dronecode.org.uk> |
Date: | Wed, 27 Feb 2013 17:55:43 +0000 |
From: | Jon TURNEY <jon DOT turney AT dronecode DOT org DOT uk> |
Reply-To: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
CC: | layer AT known DOT net |
Subject: | Re: startxwin started bash does not read .bashrc or .bash_profile |
References: | <15470 DOT 1361923720 AT relay DOT known DOT net> |
In-Reply-To: | <15470.1361923720@relay.known.net> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
On 27/02/2013 00:08, 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 tried to reproduce this, but it seem to work ok for me. How can are you checking if ~/.bashrc has been read? Have you tried using bash -v to check what bash is reading? This is also a really odd place to start mintty. Why start it as a side effect of the unrelated action starting the X server? > 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). If you are going to work with both mintty and X clients, which will not naturally have a common parent ssh-agent process to inherit from, you might want to investigate the keychain package. -- 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 |