Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Thu, 16 Aug 2001 08:09:19 +0100 Message-ID: <6572-Thu16Aug2001080920+0100-starksb@ebi.ac.uk> X-Mailer: 21.1 (patch 12) "Channel Islands" XEmacs Lucid (via feedmail 9-beta-7 I); VM 6.92 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid From: David Starks-Browning MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Fergus on Linux" Cc: Subject: rxvt: inheritance: shell, path and aliases In-Reply-To: <000901c1261c$9741dba0$4c7b1f3e@LEPER> References: <000901c1261c$9741dba0$4c7b1f3e AT LEPER> On Thursday 16 Aug 01, Fergus on Linux writes: > Thank you for a terrific distribution. > I have installed Cygwin in full and start it conventionally with > /bin/bash --login -i. > In ~/.bash_profile I set a path with PATH=, a prompt with PS1=; and also a > number of aliases -- for example > alias rm="rm -i" > alias ls="ls --color" > My question is this: when I open a rxvt terminal window with rxvt , > then I find using echo $SHELL that the shell is still /bin/bash as required; > using echo $PATH the path is evidently preserved; the prompt is still as > required; but the aliases have _not_ been inherited. Environment variables are inherited by the rxvt shell, but not aliases. This is normal. Put alias definitions in .bashrc if you want them to be defined for every interactive bash shell. Or invoke bash in rxvt with --login: rxvt -e bash --login This will force bash to read .bash_profile again. Please read the bash man page. This is not a Cygwin issue. Regards, David (Cygwin FAQ maintainer) -- 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/