delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/08/13:09:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Thu, 08 Aug 2002 12:09:17 -0500 (Central Daylight Time)
From: Michael Hoffman <grouse AT mail DOT utexas DOT edu>
Subject: Re: at home, rxvt executes bash at startup, but not at work
In-reply-to: <D36286B8BC1CD411BAE900508B95959608AB8969@WA-MSG05>
X-X-Sender: grouse AT mail DOT utexas DOT edu
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Cc: david DOT karr AT attws DOT com
Message-id: <Pine.WNT.4.44.0208081201210.1172-100000@barbecueworld>
MIME-version: 1.0

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 AT mail DOT utexas DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019