From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Vin Shelton <acs@alumni.princeton.edu>
Cc: zsh-workers@sunsite.dk
Subject: Re: Can not complete automounted directories
Date: Sun, 6 Jan 2002 21:01:43 +0000 [thread overview]
Message-ID: <1020106210143.ZM8680@candle.brasslantern.com> (raw)
In-Reply-To: <m28zbb8g8e.fsf@zion.rcn.com>
On Jan 6, 1:52pm, Vin Shelton wrote:
}
} "Bart Schaefer" <schaefer@brasslantern.com> writes:
}
} > How did you configure the automounter to put this "nicer path on the
} > front end"?
}
} Here is the contents of /etc/amd.conf:
Hm, OK. I was mostly interested in whether /net/<hostname> was a symlink
into the /.automount directory. That sort of thing used to be common
with the old SunOS automounter.
} I don't think I made any configuration changes from the Mandrake
} default package of am-utils-6.0.6-3mdk.
Indeed, I don't see anything obvious that would cause a problem.
} What automounter do you use, Bart?
I tested completion using RedHat autofs-3.1.4-4.
The way new completion handles the automounter is with some code in
_path_files that attempts to access the directory before completing
the files in it; the snippet looks like
: ${^tmp1}/${PREFIX}${SUFFIX}/.(N/)
E.g. when completing after /net/mithril/opt/b that line will first glob
/net/mithril/opt/.(N/) before the subsequent code tries to find matches
for b*. However, that code is in a loop -- it actually does, in turn,
: //net/.(N/)
: /net/mithril/.(N/)
: /net/mithril/opt/.(N/)
If for some reason that's not sufficient to automount the filesystem,
the completion will fail.
I suggest you have a look at the debugging output you can generate with:
zsh% ls /net/mithril/opt/b<C-x ?>
(where <C-x ?> of course means to type ctrl-x and then question mark).
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
prev parent reply other threads:[~2002-01-06 21:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-29 21:20 Vin Shelton
2002-01-06 2:38 ` Bart Schaefer
2002-01-06 18:52 ` Vin Shelton
2002-01-06 21:01 ` Bart Schaefer [this message]
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=1020106210143.ZM8680@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=acs@alumni.princeton.edu \
--cc=zsh-workers@sunsite.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).