Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Thu, 08 Aug 2002 12:09:17 -0500 (Central Daylight Time) From: Michael Hoffman Subject: Re: at home, rxvt executes bash at startup, but not at work In-reply-to: X-X-Sender: grouse AT mail DOT utexas DOT edu To: "cygwin AT cygwin DOT com" Cc: david DOT karr AT attws DOT com Message-id: 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 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/