Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
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 <schaefer@brasslantern.com>
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 <d.s@daniel.shahaf.name>
        "Re: Proof of concept mainstream plugin manager" (Jan 26, 10:50pm)
References: <CAKc7PVByfo51GcVkb_kYgO2D3cWYrcq-p4v8gmyfsaeWU=2new@mail.gmail.com> 
	<160122173705.ZM11491@torch.brasslantern.com> 
	<CAKc7PVCywh3fVsvFOUP3Bi27-8o1w30_E73rs8c+Zd4sOqtT8w@mail.gmail.com> 
	<CAKc7PVChdTs4WzKf+amXJ9Y7zOpQVSEsVm6pmHK3FcCQy5k-Xw@mail.gmail.com> 
	<CAKc7PVD-AAQ2TDQ_V06Sh15xT9=n5u+cU1WXRAk4kGAi16DqPA@mail.gmail.com> 
	<CAKc7PVCXvW0PCV_pREMBqvWvVL02qFmnvc+PMcdDArrCuDMjpg@mail.gmail.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 <zsh-workers@zsh.org>
Subject: Re: Proof of concept mainstream plugin manager
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Seq: zsh-workers 37807

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.

