www.delorie.com/archives/browse.cgi | search |
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: | <003601c1e265$4ddf2b10$5fb7fc3e@nori> |
From: | "Sam Edge" <sam DOT edge AT ntlworld DOT com> |
To: | "Adam" <cygwin AT tranceambient DOT com>, <cygwin AT cygwin DOT com> |
References: | <019201c1e1cf$7026dec0$52b4fc3e AT nori> <200204120636400405 DOT 0149EB24 AT mail DOT tranceambient DOT com> <200204120649230382 DOT 01558F85 AT mail DOT tranceambient DOT com> |
Subject: | Re: Bash shell extension ? |
Date: | Fri, 12 Apr 2002 22:02:06 +0100 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-MIMEOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id g3CL2TD02042 |
"Adam" <cygwin AT tranceambient DOT com> wrote; > [HKEY_CLASSES_ROOT\Directory\shell\Bash\command] > @="bash.exe -c 'cd \"%1\"; exec /bin/bash.exe'" As I said, if you use double-quotes around the %1 then it won't work for Drive because the trailing backslash will escape the closing quote. You may also get other problems with Windows backslashes as well. > 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? The text I included was copied straight from a .REG file and could be copied straight back in as long as the file has MS-DOS line endings and includes the REGEDIT4 header line. (When entering such a thing directly in regedit you have to remember not to include all the escape characters.) Anyway, a copy is available at http://homepage.ntlworld.com/sam.edge/temp/bash.prompt.reg for download. Once you've got it, open it in Notepad to make sure it's come across with CRLF line endings. I've tried this on 9x and NT series OSes and it works for both for both directories and drives. Chris January's idea about creating a batch file and starting bash from this - possibly using cygpath to massage the passed pathname - would certainly make the line in the registry simpler but results in an extra CMD.EXE (or COMMAND.COM) process loading into memory and waiting around until the bash prompt exits. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |