Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Path with spaces in _canonical_paths



On Wed, Nov 23, 2022 at 4:13 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> .
>     _f() { _canonical_paths tag desc $PWD/README }
>     compdef _f f
>     f <TAB>
> .
> is enough for me to get the else path to be taken.

For that one I do get

% f <TAB>
/Users/schaefer/Public/zsh/README  README

> .
>     touch /tmp/My\ File
>     ln -s /tmp slashtmp
>     compdef '_canonical_paths -N files files /tmp/My\ File' cmd
>     cmd <TAB>
> .

But here I just get

% cmd <TAB>
% cmd /tmp/My\ File

I haven't actually tried the docker image.  Does the above have
something to do with being on a Mac, where /tmp itself is already a
symlink to /private/tmp?




Messages sorted by: Reverse Date, Date, Thread, Author