Mail Archives: cygwin/2002/04/12/06:38:16
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 -