delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/12/17:20:35

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: <200204121718590952.03960DED@mail.tranceambient.com>
In-Reply-To: <003601c1e265$4ddf2b10$5fb7fc3e@nori>
References: <019201c1e1cf$7026dec0$52b4fc3e AT nori>
<200204120636400405 DOT 0149EB24 AT mail DOT tranceambient DOT com>
<200204120649230382 DOT 01558F85 AT mail DOT tranceambient DOT com>
<003601c1e265$4ddf2b10$5fb7fc3e AT nori>
Date: Fri, 12 Apr 2002 17:18:59 -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

Ah-hah! This reg file works perfectly! Thanks Sam!
-Adam

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

On 4/12/2002 at 10:02 PM Sam Edge wrote:

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

- Raw text -


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