Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Parse error on autoload -X and a function with & in name
- X-seq: zsh-workers 44500
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Subject: Re: Parse error on autoload -X and a function with & in name
- Date: Mon, 8 Jul 2019 21:42:49 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HxffavLpYTKqGJm3r9ETFISb36Bk8fXYTtTibDBV+ZI=; b=mI9zqd7c5Vbyg5UYBTydcR7s0cGiFscXvi9UyUAPkAR2WyMeG507drLFkJ6+HvN392 oNWV6wDuLy+OahVldBwUbBeeXyShh6cIKZhWLmUdS8i+Yzyw4/7tsJv3xAB0PbFWQhpW EGVa87KZczYubBR9BRfpJjN07k8k7TZTVkaR4RshlWJv61FmGKd10UR+YQhCGhVGcUm9 4PLgc/I9j2NAPbV6Bc32evuaSO8jhCbESF1SjDfAl0GYhAWWUAc1IXbvq6IyBujRks7D eKuCQXH1MvasnezPdvCqc1erx0MFZQwbq70+pZIGOTBLQZNwuyIpA/6h6UQsAbUPSN7G CEUA==
- In-reply-to: <CAN=4vMrY90reLbWDzrcfFj-L4is5uKd3RY3ssA+ge8Jke8Mu0w@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVAjWDNyMpXxpTN1sAPCUcHvAyNvcVmfbJhKunHkEtPAjA@mail.gmail.com> <CAN=4vMrY90reLbWDzrcfFj-L4is5uKd3RY3ssA+ge8Jke8Mu0w@mail.gmail.com>
Yes, but I need the function as an autoload function in a separate
file, and I'm loading it with Zplugin, which is constructing a manual
autoload -X stub.
If anyone has some idea for a good symbol, please share. I'm already
using @ for "api calls". Would now need a symbol for "handlers".
On Mon, 8 Jul 2019 at 21:40, Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
> This works:
>
> function '&f'() { echo f }
> '&f'
>
> Roman.
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author