delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/03/01/11:13:39

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_TX
X-Spam-Check-By: sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=8JRm2hgfqsyrU6L0K6ZA9yMMc9jJsD9sfSACFSL9vOE=; b=DnJdquxGFLMAOwV9keFbvonAcOzi0m6sxlzhCZ3O0FQvpcTp0VnA133GjAuOZANTbj la/YaflgdICA9YToDYe6r7YnYk6b4aPMYqFaQq66LOUwvrdDtbSkn44aIdK2UbT9QkWW Kkn8fGYFkpeefXMRDraajJeiOJZ4Wd503bp5XmrC+zctnkWgK5RjntWtmdhLT/MRlL8v eVAkO/qh5xmplY11Q5JDl06C1bBQqpj2oNdgoyrgeIKK24NIEpahbH4Xur9AEBpkfzTu LKnOMpIwrTnHavqg9e/bSb08HxN2/0yPYEMJ3GvcX56dVSeC/y7QS6O1FPGaL4GTtAa6 E4FQ==
X-Received: by 10.60.12.226 with SMTP id b2mr8631211oec.76.1362154392134; Fri, 01 Mar 2013 08:13:12 -0800 (PST)
Message-ID: <5130D395.80601@breisch.org>
Date: Fri, 01 Mar 2013 11:13:09 -0500
From: "Chris J. Breisch" <chris DOT ml AT breisch DOT org>
User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: startxwin started bash does not read .bashrc or .bash_profile
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> <13227 DOT 1361996106 AT freon DOT franz DOT com> <CA+sc5mmn54WHcMp4Ycz7Lw8z9qe6aSvZ6GjU7JNo3fTcCxHg3w AT mail DOT gmail DOT com> <28423 DOT 1362003402 AT relay DOT known DOT net> <CA+sc5mkWtsLWV9ZMpnZZ3xFnRjUnJ_kQp6Di9_3a0F+M+5svZg AT mail DOT gmail DOT com> <22232 DOT 1362061704 AT relay DOT known DOT net> <CA+sc5mmFfRdcByF=w9XBdfx66Yt1+Y9sa30ZTEQc-Hbmh90AuA AT mail DOT gmail DOT com> <15096 DOT 1362152982 AT freon DOT franz DOT com>
In-Reply-To: <15096.1362152982@freon.franz.com>
X-Gm-Message-State: ALoCoQnSmi+cVuaWmL2F0U5KgYrdFECZWLplHgGOSRR0M3UdI7IVY5j5RVA+7qyKbtZjh9yoii3q
X-IsSubscribed: yes
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 3/1/2013 10:49 AM, Kevin Layer wrote:
>
> Don't have cron running.  I start it as me, the logged in user, from a
> mouse click or running "startxwin" in a mintty.  Behaves the same
> either way.

Well, I am unable to duplicate this no matter what I do. I have even 
launched a dash shell directly from cmd.exe and done a startxwin from that.

I do have the following additions at the beginning of my .bashrc and 
.bash_profile

.bashrc:

[[ "$-" != *i* ]] && return
export BASHRC=${HOME}/.bashrc
if [ "${BASH_PROFILE-unset}" = "unset" ]; then
     source ${HOME}/.bash_profile
fi

.bash_profile:
export BASH_PROFILE=${HOME}/.bash_profile
if [ -f "${HOME}/.bashrc" ] ; then
   if [ "${BASHRC-unset}" = "unset" ]; then
     source "${HOME}/.bashrc"
   fi
fi

That's a little bit of overkill, but it ensures that both my 
.bash_profile and .bashrc are sourced if I am in an interactive shell. 
For consistency, I should do a check for existence of the .bash_profile 
before I source it in the .bashrc, just as I do with the .bashrc in 
.bash_profile. But from a purist standpoint that's hardly the only thing 
I'm doing wrong here.

I do not have an .xinitrc. I do have an .Xdefaults, but it just has some 
xterm display stuff in it.

Chris

-- 
In theory, there's no difference between theory and practice. In 
practice, there is.

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