zsh-workers
 help / color / mirror / code / Atom feed
From: Felix Rosencrantz <f_rosencrantz@yahoo.com>
To: zsh-workers <zsh-workers@sunsite.auc.dk>
Subject: Clearcase and filename completion
Date: Tue, 8 Feb 2000 23:33:34 -0800 (PST)	[thread overview]
Message-ID: <20000209073334.22966.qmail@web1303.mail.yahoo.com> (raw)

I'm seeing problems with directory and filename completion and Clearcase
elements.  Clearcase is a commercial source control system (home page:
http://www.rational.com/products/clearcase/index.jtmpl ) that uses its
own type of filesystem to represent the versions of a file.

CC has some interesting semantics.  If you search a directory (e.g. via
globbing, ls, or readdir) it will show you all the files in the directory.
For example,
        makefile main.c foo.c

But it also has an escape mechanism that allows you to jump into the version
tree of a file, which it represent as a sub-directory of the filesystem.  So,
in this example, you could look at foo.c@@/main/LATEST and that would show
you the latest version of foo.c on the "main" branch.

If you do a stat on foo.c@@/ it exists and has a type of directory. But look
at the parent directory of foo.c@@ and it doesn't list a foo.c@@, only foo.c.

Is there anyway to tell path_files to use the existing head of the filename,
if the head already exists.  So if I type "vi foo.c@@/" and then
attempt completion, zsh would check to see if foo.c@@/ exists, and if
it does, accept it, and complete files in that directory.  
It seems that the code seems to test for existence using globbing, which
fails in this case.

I looked at the man page, and looked at trace output to see what styles
are being checked, and none seemed to be what I wanted.

Old-style completion didn't have a problem with this because it just accepted
the head of the filename being completed.

-FR

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


             reply	other threads:[~2000-02-09  7:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-09  7:33 Felix Rosencrantz [this message]
2000-02-09  8:27 Sven Wischnowsky
2000-02-10 12:26 ` 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=20000209073334.22966.qmail@web1303.mail.yahoo.com \
    --to=f_rosencrantz@yahoo.com \
    --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).