This is the mail archive of the
mailing list for the Cygwin project.
Re: How to run bash in rxvt with both login shell and in a specific directory?
On Wed, Sep 9, 2009 at 1:31 PM, Gary Johnson wrote:
> Â ÂC:\cygwin\bin\rxvt.exe -e /bin/bash --login -c "cd /usr/local/src; exec bash -i"
A good solution, but it won't work if you do anything in .bash_profile
that's not inherited by child shell processes (aliases, shell
functions, etc), since .bash_profile won't be executed by the bash -i.
Of course, it's not good practice to do such things in .bash_profile;
better to put them in .bashrc (and have .bash_profile source .bashrc
so they happen in login shells, too)... but something to watch out
Mark J. Reed <email@example.com>
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple