public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Gunnar Boström" <Gunnar.Bostrom@kiconsulting.se>
To: <cygwin@cygwin.com>
Subject: RE: Open bash at the current explorer directory?
Date: Thu, 26 Sep 2002 00:48:00 -0000	[thread overview]
Message-ID: <C42E3A12C85D6F43BA7D6FF7E89B053A1D988B@ant02exc.ant-it.com> (raw)

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@cs.nyu.edu] 
> Sent: den 25 september 2002 23:02
> To: Gunnar Boström
> Cc: cygwin@cygwin.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@seznam.cz]
> > > Sent: den 18 september 2002 10:56
> > > To: cygwin@cygwin.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 <john.doucette@jjmackay.ca> 
> [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@cs.nyu.edu
> ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/

             reply	other threads:[~2002-09-26  6:00 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-26  0:48 Gunnar Boström [this message]
2002-09-26  7:31 ` Open bash@the " Igor Pechtchanski
2002-09-26  8:00   ` Open bash at the " Igor Pechtchanski
  -- strict thread matches above, loose matches on Subject: below --
2002-09-30  9:57 Gunnar Boström
2002-09-30 10:00 ` Christopher Faylor
2002-09-30  4:25 Gunnar Boström
2002-09-30  6:16 ` Gerrit P. Haase
2002-09-27  2:49 Gunnar Boström
2002-09-27  7:12 ` Igor Pechtchanski
2002-09-25  1:44 Gunnar Boström
2002-09-25 16:02 ` Igor Pechtchanski
2002-09-19 10:01 Tackett, Galen
2002-09-19 10:59 ` Igor Pechtchanski
2002-09-19 11:38   ` Michael A Chase
2002-09-21 10:52     ` Nicholas Wourms
     [not found] <000701c25fbc$ef4bd550$5365060a@franta>
2002-09-19  8:12 ` John Daniel Doucette
2002-09-18 14:03 John Daniel Doucette
2002-09-18  4:30 John Vincent
2002-09-18  4:42 ` Frantisek Dufka
2002-09-18  8:26   ` Igor Pechtchanski
2002-09-18  2:09 Frantisek Dufka
2002-09-18  2:14 ` Marcos Lorenzo de Santiago
2002-09-18  4:17   ` Frantisek Dufka
2002-09-13  6:34 Vince Hoffman
2002-09-13  6:33 John Daniel Doucette
2002-09-13 10:46 ` Tim Beuman
2002-09-13 11:15   ` Igor Pechtchanski
2002-09-16  8:42 ` Jens Schuessler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C42E3A12C85D6F43BA7D6FF7E89B053A1D988B@ant02exc.ant-it.com \
    --to=gunnar.bostrom@kiconsulting.se \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).