delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/02/27/15:09:22

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,TW_TX
X-Spam-Check-By: sourceware.org
X-Mail-Handler: Dyn Standard SMTP by Dyn
X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18Y8IojW5NzteDX/hpG6y2J
Date: Wed, 27 Feb 2013 15:08:58 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: startxwin started bash does not read .bashrc or .bash_profile
Message-ID: <20130227200858.GA5622@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <15470 DOT 1361923720 AT relay DOT known DOT net> <512E489F DOT 8060700 AT dronecode DOT org DOT uk> <6514 DOT 1361987973 AT freon DOT franz DOT com> <1977176204 DOT 20130227233752 AT mtu-net DOT ru>
MIME-Version: 1.0
In-Reply-To: <1977176204.20130227233752@mtu-net.ru>
User-Agent: Mutt/1.5.20 (2009-06-14)
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

On Wed, Feb 27, 2013 at 11:37:52PM +0400, Andrey Repin wrote:
>Greetings, Kevin Layer!
>
>> I know ~/.bashrc hasn't been read because my prompt is not changed and
>> my aliases are not there.
>
>That's just assumption. Not the first-hand knowledge. It may be true, or
>not... Best way to know is to place
>set -x
>around the start of the file and observe the results.
>
>>>> 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?
>
>> This is merely an example, the simplest one to reproduce the failure.
>> It's not how I want to use startxwin.
>
>>>> > 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.
>
>> I'm unfamiliar with that.  Thanks for the pointer.
>
>Or simply use PuTTY and PageAnt.

**cgf checks the mailing list

Yep.  It really is the cygwin mailing list.

If someone is here, it is presumed that they want to use Cygwin so suggesting
non-Cygwin alternatives is really off-topic and )adjective deleted(.

cgf

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