Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _canonical_path not working on *BSD
- X-seq: zsh-workers 24738
- From: Pea <zsh@xxxxxxxxxxxx>
- To: Baptiste Daroussin <baptiste.daroussin@xxxxxxxxx>
- Subject: Re: _canonical_path not working on *BSD
- Date: Wed, 26 Mar 2008 16:21:29 +0100
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <20080326114413.80713vrmznwpnyuc@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: Raveland
- References: <20080326114413.80713vrmznwpnyuc@xxxxxxxxxxxxxxx>
Le Wed, 26 Mar 2008 11:44:13 +0100,
Baptiste Daroussin <baptiste.daroussin@xxxxxxxxx> a écrit :
> 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.
>
>
>
Hi,
I confirm the error on OpenBSD.
The solution provided by baptiste works.
Second solution (for OpenBSD), change the call to readlink -f (in
Completion/Unix/Type/_canonical_paths).
Regards.
Pea
Messages sorted by:
Reverse Date,
Date,
Thread,
Author