From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22968 invoked by alias); 21 Feb 2015 23:16:20 -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: 34600 Received: (qmail 18073 invoked from network); 21 Feb 2015 23:16:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Originating-IP: [86.6.153.127] X-Spam: 0 X-Authority: v=2.1 cv=cpwVkjIi c=1 sm=1 tr=0 a=39NrsSuza2clQiZR/7fYWQ==:117 a=39NrsSuza2clQiZR/7fYWQ==:17 a=kj9zAlcOel0A:10 a=NLZqzBF-AAAA:8 a=q2GGsy2AAAAA:8 a=3eHkszbJpOJcXTPiMKwA:9 a=CjuIK1q_8ugA:10 Date: Sat, 21 Feb 2015 23:16:14 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Builtin strftime and TZ assignments Message-ID: <20150221231614.3b871425@ntlworld.com> In-Reply-To: <150221145441.ZM23213@torch.brasslantern.com> References: <150221102305.ZM26540@torch.brasslantern.com> <150221124546.ZM8579@torch.brasslantern.com> <20150221222712.49d49b88@ntlworld.com> <150221145441.ZM23213@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 21 Feb 2015 14:54:41 -0800 Bart Schaefer wrote: > Without it, starting from an unset TZ, doing > > torch% TZ=UTC strftime ... > > results in TZ remaining set to UTC after strftime completes. With the > pm->level bump, TZ is back to unset again after strftime completes. When you say "without", do you mean without setting pm->level at all? That wouldn't work because a level is only assigned if you "typeset" or equivalent --- a normal assignment creates a global parameter. But I'd expect it to work with locallevel instead of locallevel+1. I don't understand the difference if createparam() isn't there. It should always be called by any function that needs to create a parameter. pws