From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10919 invoked from network); 19 Jun 2000 12:46:55 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 19 Jun 2000 12:46:55 -0000 Received: (qmail 18894 invoked by alias); 19 Jun 2000 12:46:48 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11983 Received: (qmail 18886 invoked from network); 19 Jun 2000 12:46:46 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: "Sven Wischnowsky" , Subject: RE: PATCH: files and paths and... Date: Mon, 19 Jun 2000 16:46:36 +0400 Message-ID: <000001bfd9ec$67c31290$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-reply-to: <200006190929.LAA21068@beta.informatik.hu-berlin.de> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 > > zstyle '*:files' fake '/:cygdrive' '/cygdrive:a b c...' > > Does that work? > Yes, but I personally prefer combination of mw1g017@MW1G17C:/usr/build/zsh/Test% zstyle '*:files' accept-exact '/cygdrive/?((#e)|/*)' mw1g017@MW1G17C:/usr/build/zsh/Test% zstyle '*:files' fake /:cygdrive to avoid listing all drives (that is the whole sense of using /cygdrive at all - else I could just mount them). It means, that we may complete non-existent drive - but there is really nothing to do about it unless some way to list all drives exist. BTW as I found out, Cygwin allows you to use :/path/to/file and even d:\path\to\file (assuming proper quoting on shell level) as well. E.g. d:/temp is completely valid. Currently Zsh cannot complete it: ls d:/tTAB gives nothing. Sigh ... but probably we should move this discussion to zsh-users (to find out, just how useful it is at all). One way is to use cygpath utility that converts between DOS/Unix: mw1g017@MW1G17C:/usr/build/zsh/Test% cygpath Usage: cygpath [-p|--path] (-u|--unix)|(-w|--windows) filename -a|--absolute output absolute path -c|--close handle close handle (for use in captured process) -f|--file file read file for path information -u|--unix print Unix form of filename -w|--windows print Windows form of filename -W|--windir print `Windows' directory -S|--sysdir print `system' directory -p|--path filename argument is a path mw1g017@MW1G17C:/usr/build/zsh/Test% cygpath -u d:/temp /cygdrive/d/temp mw1g017@MW1G17C:/usr/build/zsh/Test% cygpath -u d:\\temp /cygdrive/d/temp mw1g017@MW1G17C:/usr/build/zsh/Test% cygpath -w /usr -andrej