delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/12/06:38:16

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
Message-ID: <200204120636400405.0149EB24@mail.tranceambient.com>
In-Reply-To: <019201c1e1cf$7026dec0$52b4fc3e@nori>
References: <019201c1e1cf$7026dec0$52b4fc3e AT nori>
Date: Fri, 12 Apr 2002 06:36:40 -0400
From: "Adam" <cygwin AT tranceambient DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Bash shell extension ?
X-MDRemoteIP: 24.156.188.197
X-Return-Path: cygwin AT tranceambient DOT com
X-MDaemon-Deliver-To: cygwin AT cygwin DOT com

Ok, I have made the changes you suggested, but there are some problems:
The single-quotes for the cd command seem to have messed things up .. 
bash.exe: cd: F:ClassesWINTER~2ECE344: No such file or directory
[06:27:31] /f/Classes/Winter_2002 $

What is good about this method is that before I was only getting
"/f/Classes/WINTER~2/ECE344" ..This way I see the whole path, but something is
messing up .. Any suggestions how to fix?

Last, I have added the same key under Drive, but its not working at all. All
that I see happen is the Bash window pop up for a small fraction of a second,
then disappears. Something pops up on the screen, but it closes so quickly that
I don't know what .. I can troubleshoot this more if someone can tell me where
to look .. 

-Adam


*********** REPLY SEPARATOR  ***********

On 4/12/2002 at 4:09 AM Sam Edge wrote:

>> [HKEY_CLASSES_ROOT\Folder\shell\Bash Prompt]
>> [HKEY_CLASSES_ROOT\Folder\shell\Bash Prompt\command]
>> @="bash.exe -c 'cd \"%1\"; exec bash'"
>> It seems you might also have to mount the drives you want to use.
>
>Use single quotes for the cd command so that if the Windows shell
>substitutes something ending in backslash for %1 it doesn't escape the
>close
>quote.
>
>Use the Directory key instead of the Folder one. (The difference being that
>Folder includes fictions of the Windows shell namespace that don't
>correspond to real directories.)
>
>To allow invocation of a prompt via the context menu of a drive icon apply
>the command to the Drive key as well as the Directory one.
>
>Finally, by including a default value for the command, you can add an
>underline shortcut to the context menu.
>
>(Most of this is really nothing to do with cygwin - it's all standard
>Windows stuff.)
>
>REGEDIT4
>
>[HKEY_CLASSES_ROOT\Directory\shell\BashHere]
>@="&Bash Prompt Here"
>[HKEY_CLASSES_ROOT\Directory\shell\BashHere\command]
>@="c:\\cygwin\\bin\\bash.exe -c \"cd '%1' ; exec /bin/bash\""
>[HKEY_CLASSES_ROOT\Drive\shell\BashHere]
>@="&Bash Prompt Here"
>[HKEY_CLASSES_ROOT\Drive\shell\BashHere\command]
>@="c:\\cygwin\\bin\\bash.exe -c \"cd '%1' ; exec /bin/bash\""
>
>
>--
>Sam Edge
>
>
>
>--
>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/



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019