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 44501
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Parse error on autoload -X and a function with & in name
- Date: Mon, 8 Jul 2019 22:02:24 +0200
- 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; bh=HiTtK2fVG6TSsaMN5Aa+ARDHGe8WkCh/WGZ3Y4fa0RQ=; b=IHex0TxUO81FGnzZ/Y+AShKV5a86wxCIo0wBv+B52GQcCaAXZv67JOzpw2i84zd3FS YyrW0Z1VHjYukcA/ujNnXKFZB67ahm3Ty8mITM0VOnu8Ne5UOIJWWxIDfUNZB3XRO/az J1XTWzhlaG3rDhRQC/yHbE+7C3Gh9m5YsP6Dj/6k+AUpji8Zgcl5PHRbuE7bGfoCCo62 8/i/p35oIRUe/1iEgads/oQRXuJ9dAwZr8zfW6oyntZQZSM0On5062UTWTaKji2UiuJX NI7AFtEgj1AvnEcvUla1qFO6sJs0DvqZDZXfaYTafY2TLVD0+uk5rFR73RcIStroE97g I0iQ==
- In-reply-to: <CAKc7PVAjWDNyMpXxpTN1sAPCUcHvAyNvcVmfbJhKunHkEtPAjA@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>
Sadly the same applies to a [] prefix, which would be good one for
handlers, at it symbolizes an empty space to be filled (by the
handler):
function \[\]abcd() {
autoload -X
}
noglob []abcd
(eval):1: no matches found: []abcd
On Mon, 8 Jul 2019 at 21:35, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> Hello,
>
> function \&abcd() {
> autoload -X
> }
> \&abcd
>
> gives:
> (eval):1: parse error near `&'
>
> I wanted to use the symbol as a namespacer for internal functions.
> --
> Sebastian Gniazdowski
> News: https://twitter.com/ZdharmaI
> IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
> Blog: http://zdharma.org
--
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