From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: "E. Jay Berkenbilt" <ejb@ql.org>, zsh-users@sunsite.auc.dk
Subject: Re: 3.1.9 completion problems: automounter
Date: Tue, 12 Sep 2000 05:20:08 +0000 [thread overview]
Message-ID: <1000912052009.ZM5715@candle.brasslantern.com> (raw)
In-Reply-To: <200009111436.KAA02215@soup.ads.apexinc.com>
On Sep 11, 10:36am, E. Jay Berkenbilt wrote:
} Subject: 3.1.9 completion problems: automounter
}
} I'd like to know whether there is a way to get zsh to try to access
} /home/sysadmin before deciding that there are no completions that
} start from it.
Hmm. I've just been playing with zsh on a machine at work that has an
automounted directory, and I can't reproduce the behavior you described.
If I type
zsh% ls /host/hostname<TAB>
I get a feep. But if instead I type
zsh% ls /host/hostname/<TAB>
with the trailing slash, the mount happens and I get completions. This
happens both with and without the new completion system loaded. With
old-style completion, I get the following strace output, starting from
the point at which the TAB I typed is read:
read(10, "\t", 1) = 1
fcntl(0, F_DUPFD, 10) = 11
close(0) = 0
access("/bin/ls", X_OK) = 0
stat("/bin/ls", {st_mode=S_IFREG|0755, st_size=43024, ...}) = 0
open("/misc/moonbase/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 0
fstat(0, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
So zsh *does* try to access the directory before deciding that it does
not exist. Does open("/home/sysadmin/", ...) fail on your system?
--
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
next prev parent reply other threads:[~2000-09-12 5:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-11 14:36 E. Jay Berkenbilt
2000-09-11 17:33 ` more wishes with automounter Alexandre Duret-Lutz
2000-09-12 6:58 ` Bart Schaefer
2000-09-13 9:32 ` Alexandre Duret-Lutz
2000-09-13 15:02 ` Bart Schaefer
2000-09-12 5:20 ` Bart Schaefer [this message]
2000-09-12 6:14 ` 3.1.9 completion problems: automounter 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=1000912052009.ZM5715@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=ejb@ql.org \
--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).