From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18074 invoked from network); 6 Jan 2002 21:01:59 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 6 Jan 2002 21:01:59 -0000 Received: (qmail 3169 invoked by alias); 6 Jan 2002 21:01:52 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16405 Received: (qmail 3156 invoked from network); 6 Jan 2002 21:01:50 -0000 From: "Bart Schaefer" Message-Id: <1020106210143.ZM8680@candle.brasslantern.com> Date: Sun, 6 Jan 2002 21:01:43 +0000 In-Reply-To: Comments: In reply to Vin Shelton "Re: Can not complete automounted directories" (Jan 6, 1:52pm) References: <1020106023837.ZM7568@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Vin Shelton Subject: Re: Can not complete automounted directories Cc: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jan 6, 1:52pm, Vin Shelton wrote: } } "Bart Schaefer" 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/ 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 (where 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