Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 08 Aug 2002 12:09:17 -0500 (Central Daylight Time)
From: Michael Hoffman <grouse@mail.utexas.edu>
Subject: Re: at home, rxvt executes bash at startup, but not at work
In-reply-to: <D36286B8BC1CD411BAE900508B95959608AB8969@WA-MSG05>
X-X-Sender: grouse@mail.utexas.edu
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Cc: david.karr@attws.com
Message-id: <Pine.WNT.4.44.0208081201210.1172-100000@barbecueworld>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset=US-ASCII

On Thu, 8 Aug 2002, Karr, David wrote:

> C:\cygwin\bin\rxvt.exe -bg beige -sr -ls -sl 1000
>
> I have both home and work set the same way, except I'm loading the "Andale
> Mono" font at home.  At home, when this executes, it executes bash and uses
> my $HOME/.bashrc and $HOME/.bash_profile.  I can tell because it comes up
> with my login prompt.

My rxvt shortcut is:

C:\cygwin\usr\local\bin\run.exe C:\cygwin\bin\rxvt.exe -bg black -fg white
-sr -sl 1000 -fn "Fixedsys" -ls -e /usr/bin/bash --login -i

The --login -i makes your bash an interactive login shell, and will cause
it to execute ~/.bash_profile (but not ~/.bashrc). See the bash info under
Bash Features::Interactive Shells:

   So, typically, your `~/.bash_profile' contains the line
     `if [ -f ~/.bashrc ]; then . ~/.bashrc; fi'

Run allows execution of a console mode GUI program without console windows
appearing.

http://www.neuro.gatech.edu/users/cwilson/cygutils/run/index.html
--
Michael Hoffman <grouse@mail.utexas.edu>
The University of Texas at Austin



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

