delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/01/19:30:40

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <5.1.0.14.2.20011001192343.00a74568@pop.atg.com>
X-Sender: matt AT pop DOT atg DOT com
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Mon, 01 Oct 2001 19:29:48 -0400
To: cygwin AT cygwin DOT com
From: Matt Landau <matt AT atg DOT com>
Subject: bash 2.04 can't complete ~/name if $HOME set to c:/users/foo?
Mime-Version: 1.0

I've recently switched to bash 2.0.4 as my interactive shell on Windows 2K 
(SP2), and I've noticed a couple of problems in its expansion of ~.

My environment has HOME set to c:/users/matt, but bash seems to insist on 
converting this to a cygwin-style path, /c/users/matt.  This confuses the 
hell out of programs like Emacs that don't understand cygwin paths, of 
course.

I can get around this problem by explicitly resetting HOME in my .bashrc to 
c:/users/matt.  That seems like a weird thing to have to do, but I'm used 
to doing weird things to make Win2K a usable environment :-)

The problem is that setting HOME to a non-cygwin path seems to breaks 
completion of names that start with ~.

With HOME set to /c/users/matt, typing "emacs ~/.ba<tab>" completes 
correctly.
But with HOME set to c:/users/matt, typing the same sequence doesn't do any 
completion -- it's like bash can't complete filenames that begin with a 
drive letter.  Oddly enough, though, it DOES complete correctly if I type 
"emacs ~matt/.ba<tag>".

Is bash broken with respect to tilde-expansion, or is there something I'm 
missing?


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