X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.5 required=5.0	tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD,TW_RX,TW_TX
X-Spam-Check-By: sourceware.org
From: Kevin Layer <layer@known.net>
To: cygwin@cygwin.com
Subject: Re: startxwin started bash does not read .bashrc or .bash_profile
In-reply-to: <CAMK_jUW-=GxB_-fHUxdCwLk_8ww5Whg5ztMU2NDzszBT44-70w@mail.gmail.com>
References: <15470.1361923720@relay.known.net> <512D7040.7080905@gmail.com> <26949.1361935259@relay.known.net> <512E2F7D.1030305@cs.umass.edu> <8092.1361982038@relay.known.net> <CAMK_jUW-=GxB_-fHUxdCwLk_8ww5Whg5ztMU2NDzszBT44-70w@mail.gmail.com>
Comments: In-reply-to K Stahl <kdstahl@gmail.com>   message dated "Wed, 27 Feb 2013 12:11:12 -0500."
Date: Wed, 27 Feb 2013 14:19:31 -0800
Message-ID: <28596.1362003571@relay.known.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

K Stahl wrote:

>> I normally start a terminal in my .xinitrc file (Place it in your home
>> directory):
>> 
>> Example:
>> 
>> #!/usr/bin/sh
>> urxvt -e bash -l & wmpid=$!
>> wait ${wmpid}

Turns out, I'm mistaken, but I found out something interesting.

I had created a .xinitrc with a single "xterm" call in it, but I was
still running startxwin.exe instead of xinit.exe, so because I had
renamed .startxwinrc to .startxwinrc.disabled, I was running with some
default init file for startxwin.exe.

The xterm that comes up in this case *does* source my .bashrc.

From the man page:

       startxwin
               This  will  start  up  an  XWin  server  and  run  the   user's
               .startxwinrc, if it exists, or else start an xterm.


So, the question is, why does the xterm that is started in the "or
else" behave different than the one started from .startxwinrc?

A big mystery to me.

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

