From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 786 invoked by alias); 26 Nov 2015 20:54:10 -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: 37232 Received: (qmail 15932 invoked from network); 26 Nov 2015 20:54:09 -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 autolearn=ham autolearn_force=no version=3.4.0 X-Originating-IP: [86.6.158.222] X-Spam: 0 X-Authority: v=2.1 cv=Sd8KDalu c=1 sm=1 tr=0 a=2SBOh4l1h08DI0L+aujZyQ==:117 a=2SBOh4l1h08DI0L+aujZyQ==:17 a=NLZqzBF-AAAA:8 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=PzhUI_GYpq3MqkQvzVQA:9 a=CjuIK1q_8ugA:10 Date: Thu, 26 Nov 2015 20:48:33 +0000 From: Peter Stephenson To: Bart Schaefer , zsh-workers@zsh.org Subject: Re: PATCH: global assignment with intervening private parameter Message-ID: <20151126204833.1b0b0498@ntlworld.com> In-Reply-To: <151126123751.ZM6498@torch.brasslantern.com> References: <151126123751.ZM6498@torch.brasslantern.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 26 Nov 2015 12:37:51 -0800 Bart Schaefer wrote: > The other four hunks are me getting paranoid about private somehow > being called again while we're in the middle of a typeset, e.g., > something akin to > > private everything=$(private -p) > > although I'm not sure that specific example would cause a problem. No, the top-level builtin isn't called until the substitution is completely finished. I think you'd need something pretty seriously asynchronous --- which I hope the now sophisticated signal queuing would prevent... pws