X-Recipient: archive-cygwin AT delorie DOT 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 To: cygwin AT cygwin DOT com Subject: Re: startxwin started bash does not read .bashrc or .bash_profile In-reply-to: References: <15470 DOT 1361923720 AT relay DOT known DOT net> <512D7040 DOT 7080905 AT gmail DOT com> <26949 DOT 1361935259 AT relay DOT known DOT net> <512E2F7D DOT 1030305 AT cs DOT umass DOT edu> <8092 DOT 1361982038 AT relay DOT known DOT net> Comments: In-reply-to K Stahl 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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