Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Path with spaces in _canonical_paths
- X-seq: zsh-workers 51066
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx, Thomas Gläßle <thomas@xxxxxxxxxx>
- Subject: Re: Path with spaces in _canonical_paths
- Date: Thu, 24 Nov 2022 10:42:12 -0800
- Archived-at: <https://zsh.org/workers/51066>
- In-reply-to: <20221124001256.GR27622@tarpaulin.shahaf.local2>
- List-id: <zsh-workers.zsh.org>
- References: <cd447ee7-d991-a4fd-c155-ca1b6bb96d72@coldfix.de> <CAH+w=7ZHODk-ZKPLvXiyd6s17uO+fnC-vgxnHvyGnnrqzr7vrQ@mail.gmail.com> <45820bd7-fab6-70f5-5abb-dc444f6f1075@coldfix.de> <CAH+w=7a1_O7nBO4jUH2otCnjvcW+tJmzPHqm_Zw+CVJtM_PyJw@mail.gmail.com> <20221123141357.GL27622@tarpaulin.shahaf.local2> <CAH+w=7ZOw2kKzVy3CwqgQEgZRX8agxic1VQqh4mB642ayKz0aQ@mail.gmail.com> <aa2462d2-468f-4b76-a36d-35a08dc975a9@app.fastmail.com> <CAH+w=7Z9wVCAeJaU+K-wG2jx8LHvUsF9aahUrAPLvMgaLW0STQ@mail.gmail.com> <2c4018af-1fe8-4e23-a31b-11158061bd18@app.fastmail.com> <CAH+w=7bUUbPfSKVgk+7+1PPvQYQ2OPwDakuz2Ps=4agOYk=hsQ@mail.gmail.com> <20221124001256.GR27622@tarpaulin.shahaf.local2>
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