From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12654 invoked from network); 28 Jun 2000 08:26:00 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Jun 2000 08:26:00 -0000 Received: (qmail 15310 invoked by alias); 28 Jun 2000 08:25:49 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12096 Received: (qmail 15303 invoked from network); 28 Jun 2000 08:25:48 -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: Wed, 28 Jun 2000 12:25:43 +0400 Message-ID: <000701bfe0da$73882da0$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) In-Reply-To: <200006191322.PAA31860@beta.informatik.hu-berlin.de> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 > > 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: > > Of course, it can. We only need someone who writes it. > > Hm. I guess it understands that everywhere, yes? Not only in words > starting with `?:/'. Otherwise someone could write something > in _first > to call `_files -W ...' if the current word starts with that. > > If it understand this in `-foo=d:/...', then we need support in > _path_files, but that would be possible (stuff it into prepath, etc > etc...). But only when on cygwin, of course, probably only if the > style support-cygwin(-s-rotten-paths-urgh) is set. > Yes. It understand it for any file name. You can even mix for-and back-slashes: mw1g017@MW1G17C:/cygdrive/d/temp/zsh% dd if='d:\temp/zsh\zsh.html' of=foo 2184+1 records in 2184+1 records out So, what is needed to support it is - add backslash as path seprator to _path_files - _path_files should recognize 'x:\' as "root". Hmm ... there seems to be one more problem. Zsh can glob 'c:/Progr*' to 'c:/Program Files' but not 'c:\Progr*'. It seems, that it needs more deep support; globbing code should recognize '\' as valid path separator as well. Oh, yes, and NT has case-insensitive file system, that means, globbing should be case-insensitive by default as well. -andrej