public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: Open bash at the current explorer directory?
@ 2002-09-26  0:48 Gunnar Boström
  2002-09-26  7:31 ` Open bash@the " Igor Pechtchanski
  0 siblings, 1 reply; 3+ messages in thread
From: Gunnar Boström @ 2002-09-26  0:48 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Open bash@the current explorer directory?
  2002-09-26  0:48 Open bash at the current explorer directory? Gunnar Boström
@ 2002-09-26  7:31 ` Igor Pechtchanski
  2002-09-26  8:00   ` Open bash at the " Igor Pechtchanski
  0 siblings, 1 reply; 3+ messages in thread
From: Igor Pechtchanski @ 2002-09-26  7:31 UTC (permalink / raw)
  To: Gunnar Boström; +Cc: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN, Size: 3758 bytes --]

Gunnar,
This is exactly what the `cygpath -w -l` is supposed to do.  The problem
is that I forgot that the currently compiled cygpath is buggy (not sure
why, recompiling it from 1.3.12-4 sources works).  Either recompile
cygpath, or use the attached binary (compiled on Win2k, don't know if it
matters).
	Igor

On Thu, 26 Sep 2002, [iso-8859-1] Gunnar Boström wrote:

> 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

-- 
				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

[-- Attachment #2: Type: APPLICATION/octet-stream, Size: 15872 bytes --]

[-- Attachment #3: Type: text/plain, Size: 214 bytes --]

--
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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Open bash at the current explorer directory?
  2002-09-26  7:31 ` Open bash@the " Igor Pechtchanski
@ 2002-09-26  8:00   ` Igor Pechtchanski
  0 siblings, 0 replies; 3+ messages in thread
From: Igor Pechtchanski @ 2002-09-26  8:00 UTC (permalink / raw)
  To: =?X-UNKNOWN?Q?Gunnar_Bostr=F6m?=; +Cc: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN, Size: 4785 bytes --]

Oops, just re-read this...  Brrrr, should drink more coffee before
replying to mails...  Here's another try:

Gunnar,
Converting short paths to long is exactly the intent of the `cygpath -w
-l` line.  However, the cygpath executable in the current distribution of
cygwin doesn't work.  You can simply recompile cygpath from the sources,
or use the executable in the previous message (I've posted it once before,
too, so you can search the archives).  The latter does involve some degree
of trust... :-D
Hope this is more readable.
	Igor

On Thu, 26 Sep 2002, Igor Pechtchanski wrote:

> Gunnar,
> This is exactly what the `cygpath -w -l` is supposed to do.  The problem
> is that I forgot that the currently compiled cygpath is buggy (not sure
> why, recompiling it from 1.3.12-4 sources works).  Either recompile
> cygpath, or use the attached binary (compiled on Win2k, don't know if it
> matters).
>         Igor
>
> On Thu, 26 Sep 2002, [iso-8859-1] Gunnar Boström wrote:
>
> > 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
>
>

-- 
				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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-26 14:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-26  0:48 Open bash at the current explorer directory? Gunnar Boström
2002-09-26  7:31 ` Open bash@the " Igor Pechtchanski
2002-09-26  8:00   ` Open bash at the " Igor Pechtchanski

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).