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: Mon, 19 Jun 2000 16:46:36 +0400 [thread overview]
Message-ID: <000001bfd9ec$67c31290$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <200006190929.LAA21068@beta.informatik.hu-berlin.de>
>
> 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
<DRIVE>:/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
next prev parent reply other threads:[~2000-06-19 12:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-19 9:29 Sven Wischnowsky
2000-06-19 12:46 ` Andrej Borsenkow [this message]
2000-06-19 13:22 Sven Wischnowsky
2000-06-28 8:25 ` Andrej Borsenkow
2000-06-28 8:43 Sven Wischnowsky
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='000001bfd9ec$67c31290$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).