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 |
X-Originating-IP: | [195.224.233.3] |
From: | "John Vincent" <jpv50 AT hotmail DOT com> |
To: | skoehler AT upb DOT de, gp AT familiehaase DOT de |
Cc: | cygwin AT cygwin DOT com |
Subject: | Re: Cygwin Here power toy |
Date: | Thu, 24 Oct 2002 16:05:16 +0000 |
Mime-Version: | 1.0 |
Message-ID: | <F151j6McHEfFJZnLBYG00009386@hotmail.com> |
X-OriginalArrivalTime: | 24 Oct 2002 16:05:16.0551 (UTC) FILETIME=[249ED970:01C27B77] |
Hi, The "exec" before the second invocation of /bin/bash means that this replaces the first bash, rather than having the first bash wait for it to finish. Thus, you should not end up with two copies of bash in memory. (This depends, of course, on the correct implementation of the exec() functions in the cygwin1.dll) /John Vincent. >From: Sven Köhler <skoehler AT upb DOT de> >To: "Gerrit P. Haase" <gp AT familiehaase DOT de> >CC: cygwin AT cygwin DOT com >Subject: Re: Cygwin Here power toy >Date: Sun, 20 Oct 2002 15:44:47 +0200 > >>REGEDIT4 >>[...] >>[HKEY_CLASSES_ROOT\Directory\shell\CygwinHere\command] >>@="c:\\cygwin\\bin\\bash.exe --login -c \"cd '%1' ; exec /bin/bash -rcfile >>~/.bashrc\"" > >can you think of any better way to start bash? >the above creates two bash.exe in memory: >one executing /etc/profile and the cd-command >and one showing the prompt. > >bash --login -c "command" >exits after executing the command. >is there any bash-internal command, that let's you show a prompt after the >command is executed? or any switch that forces bash to not exit? > > > > >-- >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/ _________________________________________________________________ Unlimited Internet access for only $21.95/month. Try MSN! http://resourcecenter.msn.com/access/plans/2monthsfree.asp -- 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 |