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 Message-ID: <200204120649230382.01558F85@mail.tranceambient.com> In-Reply-To: <200204120636400405.0149EB24@mail.tranceambient.com> References: <019201c1e1cf$7026dec0$52b4fc3e AT nori> <200204120636400405 DOT 0149EB24 AT mail DOT tranceambient DOT com> Date: Fri, 12 Apr 2002 06:49:23 -0400 From: "Adam" To: cygwin AT cygwin DOT com Subject: Re: Bash shell extension ? Content-Type: text/plain; charset="us-ascii" X-MDRemoteIP: 24.156.188.197 X-Return-Path: cygwin AT tranceambient DOT com X-MDaemon-Deliver-To: cygwin AT cygwin DOT com In case you need to know, this is what my registry currently looks like this: [HKEY_CLASSES_ROOT\Directory\shell\Bash] @="Bash Prompt" [HKEY_CLASSES_ROOT\Directory\shell\Bash\command] @="bash.exe -c 'cd \"%1\"; exec /bin/bash.exe'" Using this it works fine, with the exception of grossly truncating the long folder names .. If this could be fixed, I would be very happy .. :) -Adam P.S. The changes that I made as per your suggestion, I did through the registry directly (not via a .reg file) .. If this possible caused some problems, let me know .. Perhaps you could copy & paste the exact key that is in your registry to the mailing list? *********** REPLY SEPARATOR *********** On 4/12/2002 at 6:36 AM Adam wrote: >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/ -- 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/