From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25184 invoked from network); 30 Apr 2003 18:15:36 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 30 Apr 2003 18:15:36 -0000 Received: (qmail 10980 invoked by alias); 30 Apr 2003 18:15:16 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6060 Received: (qmail 10969 invoked from network); 30 Apr 2003 18:15:16 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 30 Apr 2003 18:15:16 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [192.77.186.1] by sunsite.dk (MessageWall 1.0.8) with SMTP; 30 Apr 2003 18:15:13 -0000 Received: from elvirus.progress.com (elvirus [192.77.186.100]) by pscgate.progress.com (8.12.9/8.12.9/PSC-5.09) with ESMTP id h3UIFBrb011353 for ; Wed, 30 Apr 2003 14:15:12 -0400 (EDT) Received: from progress.com (localhost [127.0.0.1]) by elvirus.progress.com (8.10.2/8.10.2/PSC-4.01) with ESMTP id h3UIFAR02878 for ; Wed, 30 Apr 2003 14:15:11 -0400 (EDT) Received: from naserv.bedford.progress.com (naserv [172.16.5.174]) by progress.com (8.11.6/8.11.6) with ESMTP id h3UIFAH04091 for ; Wed, 30 Apr 2003 14:15:10 -0400 (EDT) Received: from progress.com by naserv.bedford.progress.com (iPlanet Messaging Server 5.2 HotFix 1.03 (built Oct 1 2002)) with ESMTP id <0HE600G015DAPU@naserv.bedford.progress.com> for zsh-users@sunsite.dk; Wed, 30 Apr 2003 14:15:10 -0400 (EDT) Date: Wed, 30 Apr 2003 14:15:08 -0400 From: Bill Burton Subject: Cygwin completion fails on mounted paths To: ZSH Users Message-id: <3EB012AC.3000603@progress.com> Organization: Progress Software Corporation MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 Hello, I found the discussion earlier this month "ZSH DOS/Windows" rather informative. This got me looking at some problems I've had using zsh as my default shell under Cygwin. This is zsh 4.0.6 installed from a recent Cygwin setup. $ uname -a CYGWIN_NT-5.1 nbbillb 1.3.20(0.73/3/2) 2003-02-08 12:10 i686 unknown unknown Cygwin The problem I'm having is that zsh refuses to complete on mounted paths: $ mount C:\cygwin\bin on /usr/bin type system (binmode) C:\cygwin\lib on /usr/lib type system (binmode) C:\cygwin on / type system (binmode) C: on /c type system (textmode) If I try to complete on /c/, zsh just barks at me. After some experimentation, I found the work around is to *not* set HOME to something that uses a mount. But I want my HOME in a different place than the default that's based on HOMEDRIVE and HOMEPATH. The following hack seems to work. First in My Computer, Environment variables, I created a CYGWIN_HOME User variable set to /cygdrive/c/home. Then, I modified /etc/zprofile adding the following after the USER="`id -un`" line: # Get a specfic home directory if [ -n "$CYGWIN_HOME" ]; then if [ -d "$CYGWIN_HOME" ]; then HOME="$CYGWIN_HOME" else echo "CYGWIN_HOME points to a non existant directory!" fi fi Then, I created a zygwin.bat script in my Cygwin root directory C:\cygwin: @echo off C: chdir C:\cygwin\bin zsh -l -i So, I guess there's a bug in the completion and/or the way HOME is handled. -Bill