From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25743 invoked by alias); 25 Sep 2002 07:27:43 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 25736 invoked from network); 25 Sep 2002 07:27:42 -0000 Received: from unknown (HELO malmo.trab.se) (131.115.48.10) by sources.redhat.com with SMTP; 25 Sep 2002 07:27:42 -0000 Received: from ant03exc.ant-it.com (hanexcweb.han.telia.se [131.115.16.35]) by malmo.trab.se (8.10.1/TRAB-primary-2) with ESMTP id g8P7Rel29078 for ; Wed, 25 Sep 2002 09:27:40 +0200 (MEST) Received: from ant02exc.ant-it.com ([131.115.16.41]) by ant03exc.ant-it.com with Microsoft SMTPSVC(5.0.2195.4905); Wed, 25 Sep 2002 09:27:40 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Open bash at the current explorer directory? Date: Wed, 25 Sep 2002 01:44:00 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: =?iso-8859-1?Q?Gunnar_Bostr=F6m?= To: X-OriginalArrivalTime: 25 Sep 2002 07:27:40.0548 (UTC) FILETIME=[07D21C40:01C26465] X-SW-Source: 2002-09/txt/msg01238.txt.bz2 This works fine except that I get the windows short form of the=20 directories in the CFH variable. I've tried filtering through cygpath but no luck. Any suggestion? :-? > -----Original Message----- > From: Frantisek Dufka [mailto:dufkaf@seznam.cz]=20 > Sent: den 18 september 2002 10:56 > To: cygwin@cygwin.com > Subject: Re: Open bash at the current explorer directory? >=20 >=20 > I don't know how to do it without using .bashrc, but this=20 > works for me=20 > (current cygwin, NT 4.0) >=20 > Registry key contains: >=20 > D:\cygwin\bin\rxvt.exe -sb -sr -sl 16384 -fn fixedsys -fg=20 > gray -bg black=20 > -e /bin/env CFH=3D"%1" /bin/bash --login >=20 > .bashrc contains >=20 > if [ "$CFH" !=3D "" ] ; then > cd "$CFH" > unset CFH > fi >=20 > No temporary files, bash.exe or .bash_profile is not executed twice.=20 > Also looks like cygpath -u is not needed, DOS paths seem to=20 > work in cd=20 > command. >=20 > Frantisek >=20 > ------------------------------------- > * John Daniel Doucette [13-09-02 15:23]: > > I am using Win2000 Pro, SP3. Is there a way to invoke an=20 > interactive bash > > shell at a particular directory, without using a .bashrc=20 > or similar=20 > file? > > I.e. on the command lie alone? The --login and -c options=20 > appear to be > > mutually exclusive. I would like to be able browse quickly to a=20 > directory > > with explorer, option/right click on the directory, then=20 > select a custom > > "open with cygwin" option, and have the bash shell open at that > > directory. Has anyone tried this? >=20 > Read this from the archive. > http://www.cygwin.com/ml/cygwin/2002-05/msg01648.html >=20 > HTH > Jens >=20 >=20 -- 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/