Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: PATCH: files and paths and...
- X-seq: zsh-workers 12096
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Sven Wischnowsky" <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: PATCH: files and paths and...
- Date: Wed, 28 Jun 2000 12:25:43 +0400
- Importance: Normal
- In-reply-to: <200006191322.PAA31860@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
> > 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author