From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18095 invoked by alias); 27 Jan 2016 04:34:18 -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: 37807 Received: (qmail 10372 invoked from network); 27 Jan 2016 04:34:17 -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,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=KC4Up+VakUhRY3ItIeQiwNGJ2IFVtjWtYq90Ba2dAsY=; b=0Wnmokc1NMGpU4b6w3wOcLTm46oN3BqirtKQ30GhX8dR0k3NLB9tbrnVp22iek70Ad aa4PAtPGEzKqUu/lou4v/cVlZTsFC6HC1Ut7NtYLQDfIE8fsxPlthq56WrLGoUK4Lpuo wjCjmWXgQhEGNpz8tX9AMO88FJOlDXrB1izI0qg7NvEM54DE/M0r6bXbG8uP340lfpsP hVVC1NVPWK5u2HEHZm5blEVpWDmbv0RhKg4Pt65EOKakZsgajfS05zxMbS5evH4tL3tx NuNpzjtIToAO/qc5JMw11FJTnGri8NR/ON9QiM41St3KsYQqU7nyytC4R0d2csCM5+sn /QJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=KC4Up+VakUhRY3ItIeQiwNGJ2IFVtjWtYq90Ba2dAsY=; b=AYfwYrSFxmAUhwPHOLcgoN1PWUbr4jxFQNnXyFJVhb26qwbLXF4P3PKQUov8JXuLbT VYMrIGM4sQ6oDskbhIxvpt1qKD7LYm2ONkYj9R2KHpPK9X11uRbuEIGzUnJ+dKTqQ4Yu kLfeosd6EFGqGzsLBKmz+9vMXj00ATCrtw15HU8PoUyIyDf7X+kZTKvdKpkHv3ul/DS6 c6J9+buImSfk0hmhlJY8wby7/3KRscRyPDt28upvfkiqZcisGIYhven5P97kEL655Sj2 NcTYpIfFNtiqsOI/YxdBDhEC6JOHf5ciHTsTlowFPHn4xZM5nVMsC6ruK6AoaUYJCpvx sTDQ== X-Gm-Message-State: AG10YOR4pkMocvd41ko+EcZY5y6JovBk7FbRpus14BEqW/8jkIpBsJ4U8FAIEM9t8BZJqw== X-Received: by 10.98.70.151 with SMTP id o23mr39261904pfi.124.1453869256001; Tue, 26 Jan 2016 20:34:16 -0800 (PST) From: Bart Schaefer Message-Id: <160126203458.ZM2800@torch.brasslantern.com> Date: Tue, 26 Jan 2016 20:34:58 -0800 In-Reply-To: <20160126225010.GA15958@tarsus.local2> Comments: In reply to Daniel Shahaf "Re: Proof of concept mainstream plugin manager" (Jan 26, 10:50pm) References: <160122173705.ZM11491@torch.brasslantern.com> <160123093602.ZM14454@torch.brasslantern.com> <160123112004.ZM14739@torch.brasslantern.com> <160123120055.ZM14828@torch.brasslantern.com> <20160126225010.GA15958@tarsus.local2> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh hackers list Subject: Re: Proof of concept mainstream plugin manager MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jan 26, 10:50pm, Daniel Shahaf wrote: } Subject: Re: Proof of concept mainstream plugin manager } } Bart Schaefer wrote on Sat, Jan 23, 2016 at 12:00:55 -0800: } > eval "function $func { } > _reload_and_run ${(q)PLUGIN_DIR} ${(qq)opts} $func "'"$@" } > }' } } Perhaps change $func to ${(q)func}. Sebastian has already changed that whole thing to be functions[$func]="_reload_and_run ${(q)PLUGIN_DIR} $opts $func "'"$@" which yes, is going to do strange things if $func contains spaces. On the other hand, the whole plugin would already be broken if $func contains spaces. I'd rather not "fix" it in an unpredictable way.