Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <00a701c1e26a$2bd6e940$5fb7fc3e@nori>
From: "Sam Edge" <sam.edge@ntlworld.com>
To: "Adam" <cygwin@tranceambient.com>, <cygwin@cygwin.com>
References: <019201c1e1cf$7026dec0$52b4fc3e@nori> <200204120636400405.0149EB24@mail.tranceambient.com> <200204120649230382.01558F85@mail.tranceambient.com> <003601c1e265$4ddf2b10$5fb7fc3e@nori> <200204121718590952.03960DED@mail.tranceambient.com>
Subject: Re: Bash shell extension ?
Date: Fri, 12 Apr 2002 22:36:56 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
X-Priority: 3
X-MSMail-Priority: Normal
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g3CLbT907356

"Adam" <cygwin@tranceambient.com> wrote;

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

LOL. Glad I could help. Unfortunately there are still problems.

First off, you don't get the menu item for network shares in the Network Neighbourhood so you can't get a bash prompt in the root of a share.

Secondly, although you do get the prompt for folders within shares, the command doesn't select the correct directory because bash is reducing the '\\' at the front of the UNC path passed by Windows in the substitution for %1 to a single backslash even when enclosed in single quotes.

It might be time to think of a little utility that takes a Windows path as its first argument without converting any shell escapes in it, converts that to UNIX à la cygpath, chdirs to this and then execs its second argument with subsequent ones as the rest of the argv.

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

