From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16686 invoked by alias); 23 Jan 2016 15:54:37 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37739 Received: (qmail 9349 invoked from network); 23 Jan 2016 15:54:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=t1GAjIi10xPXt0CHr7uf2MpiyswHkdo/mz9cFrZrEfY=; b=ZGrg4zywK/dAxNax4N2UcfLwHop1PgZEkzuGVdjyNZFLsQAqMYDcWj8nXBOtqzgXSU tSwv4pUPpYEOSgOW0hCV9KtNQCU1Q3hJNnQLbhmVWH6VvCfwTv4u/tfiosQfDlk9XVtr mT7tdVltBQ/G1J5qyA3CCeWt27YxPAD6icw5EcZ9dPkC6j4m3euTdSo+DbMbAuLbrLuB eepHaE+rrO1EOMwADzQlMIvZg6cnKm8VhTsfSMsN5/NyavIbZcb0QCiDlfcQ2LVtMV3N nu/Widfz9h3MRmeBSMKC2DZ/t2SkuW52U9kvYShgJk7ihJ970CkSigPuRcUGyJfrCFkp Sdtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=t1GAjIi10xPXt0CHr7uf2MpiyswHkdo/mz9cFrZrEfY=; b=D4YVSk/J/XLCMbPTeBh5CrW1c0Nm4iApuY12QjMaBIhlVbGckez8BcxnhL1P/0uy57 22docrsKMw16MCN+X/uhIJSnCo5jc5n+jvVtp1nEjigdPa6eFpNIMDU2RNkpCBdw92IB xGfEXFx5tFUzK94GS7j0CS35Ehzwbqz/TS28YwQqzr/VEVqnMXRfMqb3FZSytk5PqU3M gzSWA4P5B5F/aX/XBeZ58QNGyRUxi8xETQFhkAUGCMTHjStWtHGMgZkC4YMAq2v22POZ E9/z9t07Ua5kbKL/DklWIiH+ZjUkTQcrwrgh55B/z9OR0tAhLQcl6YsHDDZKo6/LzG6/ jsow== X-Gm-Message-State: AG10YOQ4vrnZvVRGyfpxxOaptwP477eCoXhjpiyfhNLJowBEOrg9dup41HleJa/651KwIlsjkLjJXSCl8LLsdA== X-Received: by 10.25.151.9 with SMTP id z9mr2808670lfd.72.1453564472341; Sat, 23 Jan 2016 07:54:32 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <160122173705.ZM11491@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Sat, 23 Jan 2016 16:54:12 +0100 Message-ID: Subject: Re: Proof of concept mainstream plugin manager To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 23 January 2016 at 10:03, Sebastian Gniazdowski wrote: > Discouraging, but quite expected. Doing autoload -X is expected to > generate some edge-cases on Zsh usage. If I could test say 30 plugins > from the awesome-zsh-plugins list, and confirm they're all working, > that would be an enabler for autoload -X, otherwise the project's > sense is doubtful. Tried without eval: for i in "$@"; do $i() { local_FPATH builtin autoload -X } local replace_str=3D"local FPATH=3D'$ZPLUGIN_HOME/plugins/${ZPLUGIN_CURRENT_USER}--${ZPLUGIN_CURRENT_P= LUGIN}'" functions[$i]=3D"${functions[$i]/local_FPATH/$replace_str}" done https://github.com/psprint/zplugin/commit/8bcb689b5c808b7136f0385c9506fbaa3= ef83f46 But the traps are still broken. That's a puzzle, as autoload does the same thing =E2=80=93 constructs function with autoload -X in its body... Best regards, Sebastian Gniazdowski