Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_canonical_path not working on *BSD
- X-seq: zsh-workers 24734
- From: Baptiste Daroussin <baptiste.daroussin@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: _canonical_path not working on *BSD
- Date: Wed, 26 Mar 2008 11:44:13 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:message-id:date:from:to:subject:mime-version:content-type:content-disposition:content-transfer-encoding:user-agent; bh=TSFNIXbkpBceTJabqGzhqox5cboiL91eHOyBIap3E04=; b=mkvG335OL+m3Fn0eNU1xZ3tYl4fmOYX9jWaslbDevcGWV8LjObKzkqm0bLKhPp0b12oHpZPf9ItYYrW9CHEcEtVpOkWtaUZ5pTPaT7JAf1HbAf+xJVyrEJPsEhyUtj1NFP/I6Pc4ZmHYjYmrFPFvUsD8UmeTUQ3QoieL09Qnu38=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type:content-disposition:content-transfer-encoding:user-agent; b=IGDqCI+FhBq1rMXHttXMjYXNoHRYJjJTg1dnYhZkLM4jg+MOUVDkYExImEgazQmkEekwEyp5e1IdhQAJy7z9jX5Tr1cpuo2JCN9paXrrLfLN3PV6AK7UjbUjP3Rs7YP4KZhFS2DOFpiCqbgjVDSqcrvw+0rl02nKOw8IuiapmzI=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hi,
_canonical_path is not working on freebsd, it rely on readlink which
does work the same on BSD :
on openbsd -q options doesn't exist : umount[tab] gives readlink:
unknown option -- q
on freebsd readlink: illegal option -- q
there is on patch on freebsd ports which uses /usr/sbin/stat that
works but then the completion is buggy
http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/shells/zsh/files/patch-Completion-Unix-Type-_canonical_paths?rev=1.1;content-type=text%2Fplain
umount /h[tab]
gives me umount /h/
then [tab] again gives me umount /h//
so currently the work around is to replace _canonical_path by compadd
-a in _mount (udevordir) and it works
I can't find any clue to correct the bug myself.
Thanks
Bapt
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author