public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "KARR, DAVID (ATTCINW)" <dk068x@att.com>
To: <cygwin@cygwin.com>
Subject: RE: How to run bash in rxvt with both login shell and in a specific  	directory?
Date: Wed, 09 Sep 2009 20:21:00 -0000	[thread overview]
Message-ID: <E0529A8FFC2C9143A5F1BB9A89101D06068843EF@BD01MSXMB018.US.Cingular.Net> (raw)
In-Reply-To: <f60fe000909091041y4efc004ap50976832195f19bc@mail.gmail.com>

> -----Original Message-----
> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On
> 
> 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
> for.

Hmm.  This (Gary's solution) didn't work.  Instead of leaving me in my Cygwin home or the target directory, it left me in my Windows home.  I don't know why.

I tried implementing Mark's solution, and that worked fine.  I don't have to look at it, so I won't complain. :)


      reply	other threads:[~2009-09-09 20:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-09 17:10 KARR, DAVID (ATTCINW)
2009-09-09 17:24 ` Mark J. Reed
2009-09-09 17:31 ` Gary Johnson
2009-09-09 17:41   ` Mark J. Reed
2009-09-09 20:21     ` KARR, DAVID (ATTCINW) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E0529A8FFC2C9143A5F1BB9A89101D06068843EF@BD01MSXMB018.US.Cingular.Net \
    --to=dk068x@att.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).