| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
| Message-ID: | <006501c2392b$29e5faf0$9701320a@flareon> |
| From: | "Hamish Fawns" <fawnha AT aie DOT act DOT edu DOT au> |
| To: | <cygwin AT cygwin DOT com> |
| References: | <004101c23925$9d5f5900$9701320a AT flareon> <0208011650160J DOT 13014 AT gilgamesh> |
| Subject: | Re: Executing bash commands from the bash command line |
| Date: | Thu, 1 Aug 2002 17:15:06 +1000 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4522.1200 |
>
> bash -c "cd /cygdrive/c/myfolder ; exec bash"
>
Dear George,
I did as you suggested however when I called "exec bash" after changing
the directory a new instance of bash was spawned but when a new instance of
bash was spawned it started in my home directory (~).
Hamish
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |