From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Sven Wischnowsky" <wischnow@informatik.hu-berlin.de>,
<zsh-workers@sunsite.auc.dk>
Subject: RE: PATCH: files and paths and...
Date: Wed, 28 Jun 2000 12:25:43 +0400 [thread overview]
Message-ID: <000701bfe0da$73882da0$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <200006191322.PAA31860@beta.informatik.hu-berlin.de>
> > 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
next prev parent reply other threads:[~2000-06-28 8:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-19 13:22 Sven Wischnowsky
2000-06-28 8:25 ` Andrej Borsenkow [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-06-28 8:43 Sven Wischnowsky
2000-06-19 9:29 Sven Wischnowsky
2000-06-19 12:46 ` Andrej Borsenkow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000701bfe0da$73882da0$21c9ca95@mow.siemens.ru' \
--to=andrej.borsenkow@mow.siemens.ru \
--cc=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).