Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Surprising effect of fun() { local FPATH=...; autoload -X }, and a bug
- X-seq: zsh-workers 39455
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: Surprising effect of fun() { local FPATH=...; autoload -X }, and a bug
- Date: Tue, 27 Sep 2016 07:05:27 +0000
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=6mZresMSePmDJqA0rXyiDXwMQC0=; b=KeBK0D 3uqMZesHkCHy0ctHg2ZYeiyKlj5F6BjCzeJSsi7PKnKBrH8hD/krUshavzdxee+l wL0o+zueu0S9LtNrIEY6u34U1fNhAP7wx52/WNO+D1pNVEjxvfyCmv9D5TCWL52H SouWELVruY3KlvXx33pEpSR6X0DMGI/kjvWBM=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=6mZresMSePmDJqA0rXyiDXwMQC0=; b=efocP 1++pqpzFmqqistcKkVl+FV/KnYHI7/MKzYB6kyz04z8kVy4KWrcYX1zffIave4L4 d7xYLmNewsdgouRigEzc3y1pFylOtvtO3urq2kykp0oIaH5NQk0VmbndWHGoZabU DTAjvw/CCr1OVqH/kfVhU0PQvwImToufMv+edw=
- In-reply-to: <CAKc7PVCXq6jQe2gF-Hb4UFBx7UXxRE=3_8Z2Oyq-H6d0LoNLAA@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>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCXq6jQe2gF-Hb4UFBx7UXxRE=3_8Z2Oyq-H6d0LoNLAA@mail.gmail.com>
Sebastian Gniazdowski wrote on Tue, Sep 27, 2016 at 00:07:37 +0200:
> eval "function $func {
> local FPATH="$PLUGIN_DIR":"${FPATH}"
> builtin autoload -X ${opts[*]}
> }"
The " signs in the first line of the function body need to be escaped.
The parameter expansions $foo need to be escaped, some as \$foo and
others as ${(q)foo}.
(No idea about your question; if I had an idea I'd have shared it.)
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author