From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28942 invoked by alias); 5 Oct 2015 23:01:13 -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: 36796 Received: (qmail 27101 invoked from network); 5 Oct 2015 23:01:13 -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-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=A4v6UirdKyubGOPxvg/h12/NyhJX46Vt1vGZCXqBi+0=; b=XtgyK9h8r1Zoj33Tpc93r9wjgmyDxpivDsrF0npXAxm4Z2QFHNkqGkrgP9cz1xUU+c hvD3M1nRiPM+22kZBvgy+6SncdqKCdRRDD+X7OBg9kR4RudAIcBr/xK4ibzVUF55LRAW N88eNBZDFKS5woWGOck1VWRJBjGfxpniuH9uBAQzp8CFbaB74DqkKwcC5HnsrTUaSfwR QieBglAhzGnS2oFORqDjLaE1i5dS1cfo31ADqaDjNzXzxxmKq2CVlNXlS646f9oEqib2 MFyMcoupfE48tzl96zDbp+dXfzojRo0OPGERcnhBoTzRHZX+TlOYaRluL2t6uZRcs6n/ DKUA== X-Gm-Message-State: ALoCoQl5Xd2+pRQj4g2e3y7g14fm+HqVKIcOx5Eccxat3E5Xya6aZ1VoMEVqsCfO9uwSbHCIZMJr X-Received: by 10.202.73.66 with SMTP id w63mr17881316oia.94.1444086071810; Mon, 05 Oct 2015 16:01:11 -0700 (PDT) From: Bart Schaefer Message-Id: <151005160109.ZM4599@torch.brasslantern.com> Date: Mon, 5 Oct 2015 16:01:09 -0700 In-Reply-To: <20151005223637.GE2367@tarsus.local2> Comments: In reply to Daniel Shahaf "Re: Proof of concept: "static" parameter scope" (Oct 5, 10:36pm) References: <150924192305.ZM2680@torch.brasslantern.com> <20150925101540.5d2ded9c@pwslap01u.europe.root.pri> <20150930203825.307d3f8f@ntlworld.com> <150930172748.ZM3986@torch.brasslantern.com> <20151003201936.29b52aa4@ntlworld.com> <20151005215514.GB1959@tarsus.local2> <151005151739.ZM4535@torch.brasslantern.com> <20151005223637.GE2367@tarsus.local2> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: Proof of concept: "static" parameter scope MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 5, 10:36pm, Daniel Shahaf wrote: } } Okay, I understand the consistency point, but could you explain why } "disable local" shouldn't emit "command local"? The task of which name / functions name / print -R $functions[name] is to reproduce the text of the function, not its semantics. Otherwise the next logical step would be for emulate zsh -c 'foo() { ... }' functions foo to emit a "setopt" command along with the function definition. Oh, but why stop there? I might have defined the function with all sorts of setopts in effect, even if I didn't say "emulate" to make them sticky. Maybe those should be output as well ...