Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
more wishes with automounter
- X-seq: zsh-users 3417
- From: Alexandre Duret-Lutz <duret_g@xxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: more wishes with automounter
- Date: 11 Sep 2000 19:33:35 +0200
- In-reply-to: "E. Jay Berkenbilt"'s message of "Mon, 11 Sep 2000 10:36:32 -0400"
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- Organization: LRDE/EPITA http://www.lrde.epita.fr/
- References: <200009111436.KAA02215@xxxxxxxxxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author