Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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-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" Subject: RE: Open bash at the current explorer directory? Date: Thu, 26 Sep 2002 08:00:09 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: =?iso-8859-1?Q?Gunnar_Bostr=F6m?= To: X-OriginalArrivalTime: 26 Sep 2002 06:00:41.0119 (UTC) FILETIME=[0B3632F0:01C26522] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g8Q60sV32632 I only have ntsec in $CYGWIN. I tried your advise below but "cygpath -w -l" returns garbage! The very first problem is that env CFH="%1" in the register inserts the short windows form. Is it possible to force windows to insert the long form? :-) > -----Original Message----- > From: Igor Pechtchanski [mailto:pechtcha AT cs DOT nyu DOT edu] > Sent: den 25 september 2002 23:02 > To: Gunnar Boström > Cc: cygwin AT cygwin DOT com > Subject: RE: Open bash at the current explorer directory? > > > Gunnar, > I assume your $CYGWIN contains "check_case:strict", since that is the > setting in which the short paths won't work. They will work > if $CYGWIN > contains "check_case:adjust". So, you can use the following > sequence in > your .bashrc to get the correct form of the windows path: > > if [ -n "$CFH" ] ; then > CFH="$(export CYGWIN="$CYGWIN check_case:adjust";cygpath > -w -l "$CFH")" > cd "$CFH" > unset CFH > fi > > Hope this helps, > Igor > > On Wed, 25 Sep 2002, [iso-8859-1] Gunnar Boström wrote: > > > This works fine except that I get the windows short form of the > > directories in the CFH variable. > > I've tried filtering through cygpath but no luck. > > Any suggestion? > > > > :-? > > > > > -----Original Message----- > > > From: Frantisek Dufka [mailto:dufkaf AT seznam DOT cz] > > > Sent: den 18 september 2002 10:56 > > > To: cygwin AT cygwin DOT com > > > Subject: Re: Open bash at the current explorer directory? > > > > > > > > > I don't know how to do it without using .bashrc, but this > > > works for me > > > (current cygwin, NT 4.0) > > > > > > Registry key contains: > > > > > > D:\cygwin\bin\rxvt.exe -sb -sr -sl 16384 -fn fixedsys -fg > > > gray -bg black > > > -e /bin/env CFH="%1" /bin/bash --login > > > > > > .bashrc contains > > > > > > if [ "$CFH" != "" ] ; then > > > cd "$CFH" > > > unset CFH > > > fi > > > > > > No temporary files, bash.exe or .bash_profile is not > executed twice. > > > Also looks like cygpath -u is not needed, DOS paths seem to > > > work in cd > > > command. > > > > > > Frantisek > > > > > > ------------------------------------- > > > * John Daniel Doucette > [13-09-02 15:23]: > > > > I am using Win2000 Pro, SP3. Is there a way to invoke an > > > interactive bash > > > > shell at a particular directory, without using a .bashrc > > > or similar > > > file? > > > > I.e. on the command lie alone? The --login and -c options > > > appear to be > > > > mutually exclusive. I would like to be able browse > quickly to a > > > directory > > > > with explorer, option/right click on the directory, then > > > select a custom > > > > "open with cygwin" option, and have the bash shell open at that > > > > directory. Has anyone tried this? > > > > > > Read this from the archive. > > > http://www.cygwin.com/ml/cygwin/2002-05/msg01648.html > > > > > > HTH > > > Jens > > > > > > > > > > -- > > 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/ > > > > -- > http://cs.nyu.edu/~pechtcha/ > |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu > ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com > |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski > '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! > > "Water molecules expand as they grow warmer" (C) Popular > Science, Oct'02, p.51 > > -- 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/