From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23445 invoked from network); 26 Mar 2008 15:21:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 26 Mar 2008 15:21:49 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 97122 invoked from network); 26 Mar 2008 15:21:46 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 Mar 2008 15:21:45 -0000 Received: (qmail 24411 invoked by alias); 26 Mar 2008 15:21:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24738 Received: (qmail 24397 invoked from network); 26 Mar 2008 15:21:42 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 26 Mar 2008 15:21:42 -0000 Received: from puffy.raveland.org (puffy.raveland.org [195.200.166.230]) by bifrost.dotsrc.org (Postfix) with ESMTP id 840548097826 for ; Wed, 26 Mar 2008 16:21:35 +0100 (CET) Received: from coredump.raveland.priv (bofh.pacwan.net [195.200.191.36]) by puffy.raveland.org (Postfix) with ESMTP id 4A01D713467; Wed, 26 Mar 2008 16:21:34 +0100 (CET) Date: Wed, 26 Mar 2008 16:21:29 +0100 From: Pea To: Baptiste Daroussin Cc: zsh-workers@sunsite.dk Subject: Re: _canonical_path not working on *BSD Message-ID: <20080326162129.4817359d@coredump.raveland.priv> In-Reply-To: <20080326114413.80713vrmznwpnyuc@bapt.selfip.org> References: <20080326114413.80713vrmznwpnyuc@bapt.selfip.org> Organization: Raveland X-Mailer: Claws Mail 3.3.0 (GTK+ 2.12.7; i386-unknown-openbsd4.3) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV 0.91.2/6396/Wed Mar 26 12:29:12 2008 on bifrost X-Virus-Status: Clean Le Wed, 26 Mar 2008 11:44:13 +0100, Baptiste Daroussin a =E9crit : > Hi, >=20 > _canonical_path is not working on freebsd, it rely on readlink which =20 > does work the same on BSD : > on openbsd -q options doesn't exist : umount[tab] gives readlink: =20 > unknown option -- q > on freebsd readlink: illegal option -- q >=20 > there is on patch on freebsd ports which uses /usr/sbin/stat that =20 > works but then the completion is buggy > http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/shells/zsh/files/p= atch-Completion-Unix-Type-_canonical_paths?rev=3D1.1;content-type=3Dtext%2F= plain >=20 >=20 > umount /h[tab] > gives me umount /h/ > then [tab] again gives me umount /h// >=20 > so currently the work around is to replace _canonical_path by > compadd -a in _mount (udevordir) and it works >=20 > I can't find any clue to correct the bug myself. >=20 > Thanks > Bapt >=20 > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. >=20 >=20 >=20 Hi, I confirm the error on OpenBSD. The solution provided by baptiste works.=20 Second solution (for OpenBSD), change the call to readlink -f (in Completion/Unix/Type/_canonical_paths). Regards. Pea