Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Subject: bash 2.04 can't complete ~/name if $HOME set to c:/users/foo? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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" 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". 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/