| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 |
| X-Spam-Check-By: | sourceware.org |
| X-VirusChecked: | Checked |
| X-Env-Sender: | dk068x AT att DOT com |
| X-Msg-Ref: | server-10.tower-120.messagelabs.com!1252516184!20170360!1 |
| X-StarScan-Version: | 6.1.3; banners=-,-,- |
| MIME-Version: | 1.0 |
| Subject: | How to run bash in rxvt with both login shell and in a specific directory? |
| Date: | Wed, 9 Sep 2009 10:09:32 -0700 |
| Message-ID: | <E0529A8FFC2C9143A5F1BB9A89101D060688426B@BD01MSXMB018.US.Cingular.Net> |
| From: | "KARR, DAVID (ATTCINW)" <dk068x AT att DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
I'd like to have a command line that will run bash inside rxvt, both as
a login shell (so I get all my paths and profile) and in a specific
directory. I know how to get it to a specific directory, and I know how
to make it a login shell, but I can't figure out how to get both.
If I use this:
C:\cygwin\bin\rxvt.exe -ls -cd "path" -e /usr/bin/bash -l
I get a login shell, but at my home dir, not at the specified path.
If I remove the last "-l", it goes to the correct directory, but it
didn't appear to load my profile (PATH isn't correct, for instance).
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |