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

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: <00a701c1e26a$2bd6e940$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> <003601c1e265$4ddf2b10$5fb7fc3e AT nori> <200204121718590952 DOT 03960DED AT mail DOT tranceambient DOT com>
Subject: Re: Bash shell extension ?
Date: Fri, 12 Apr 2002 22:36:56 +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 g3CLbT907356

"Adam" <cygwin AT tranceambient DOT 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/

- Raw text -


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