zsh-users
 help / color / mirror / code / Atom feed
From: Alexandre Duret-Lutz <duret_g@lrde.epita.fr>
To: zsh-users@sunsite.auc.dk
Subject: more wishes with automounter
Date: 11 Sep 2000 19:33:35 +0200	[thread overview]
Message-ID: <mvb66o27s0g.fsf@phobos.lrde.epita.fr> (raw)
In-Reply-To: "E. Jay Berkenbilt"'s message of "Mon, 11 Sep 2000 10:36:32 -0400"

Hi,

I use automounter, too, and have trouble with Zsh.

I have a bunch of automounted NFS directories in
/var/autofs/nfs/

Since the automountable directories are invisible [*] in
/var/autofs/nfs/ until they are mounted, and because
I don't wan't to remember their names, I have setup
a /nfs/ directory with symbolic links to the automounted
directories:

   /nfs/hosts1 -> /var/autofs/nfs/host1
   /nfs/hosts2 -> /var/autofs/nfs/host2
   /nfs/hosts3 -> /var/autofs/nfs/host3
etc...

The problem is that using Zsh to complete /nfs/hos<TAB> will
mount *all* the directories, because the completion code stat()
all links (and stat()ing a link will lead to the mount of the
linked directory).  I believe that Zsh may use lstat() instead,
but since I don't know where that guilty stat() is I haven't
tried.

[*] another wish would be that Zsh complete those invisible
    directories; or more generaly: give the user the possiblity
    to add "virtual files" (anywhere he want), that Zsh would
    use for completion.
-- 
Alexandre Duret-Lutz


  reply	other threads:[~2000-09-11 17:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-11 14:36 3.1.9 completion problems: automounter E. Jay Berkenbilt
2000-09-11 17:33 ` Alexandre Duret-Lutz [this message]
2000-09-12  6:58   ` more wishes with automounter Bart Schaefer
2000-09-13  9:32     ` Alexandre Duret-Lutz
2000-09-13 15:02       ` Bart Schaefer
2000-09-12  5:20 ` 3.1.9 completion problems: automounter Bart Schaefer
2000-09-12  6:14   ` Bart Schaefer

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=mvb66o27s0g.fsf@phobos.lrde.epita.fr \
    --to=duret_g@lrde.epita.fr \
    --cc=zsh-users@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).