From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22650 invoked by alias); 5 Oct 2015 22:36:41 -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: 36794 Received: (qmail 22369 invoked from network); 5 Oct 2015 22:36:41 -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-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=2D+ryF0zSnIqxrW52IQcLcKmw5k=; b=jC7yMl 9mmooirANlmUn8GeI2X5Yt582b9RTJCmeeOq/rRLfnERo2fuNUMiN8esmgJWff3J KfynW9AIAzmcU5A3SdV+s6as5eFiIkGsRMGNiphVfzJxFWdH6WQQ0U3O+0xtDkes zlW6pD25l6+lGEeHAyWLGTvirvvAYKc9GMYlQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=2D+ryF0zSnIqxrW52IQcLcKmw5k=; b=F0uWD MI2bzpn9k6AHlkOX7br4XUqtNK+osz83zDi/xU6fb1a998+UA8srkOcny8BLJEPk hKzirY6lHANRS57SPw7+CSpxO7TKnNXsKW4oXf+4XgaU5emwUO+VnNiGU6OQ+3dd iRg6Forl9R+SEHJoHTokAevRBCaENYKE/KqdLY= X-Sasl-enc: rz4UT6pb+NAKyNf6nAB1egOA4YV49LTgqQZbBrnGfFb6 1444084599 Date: Mon, 5 Oct 2015 22:36:37 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: Re: Proof of concept: "static" parameter scope Message-ID: <20151005223637.GE2367@tarsus.local2> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <151005151739.ZM4535@torch.brasslantern.com> User-Agent: Mutt/1.5.21 (2010-09-15) Bart Schaefer wrote on Mon, Oct 05, 2015 at 15:17:39 -0700: > On Oct 5, 9:55pm, Daniel Shahaf wrote: > } > } Related issue: > } > } % disable -r local > } % zxxx() { local x=(a b c); print $x } > } % enable -r local > } % which zxxx > } zxxx () { > } local x=(a b c) > } print $x > } } > } > } Should it output 'builtin local x=(a b c)'? > > No, we don't want to go down that road, because "disable local" doesn't > (shouldn't) cause it to start emitting "command local" either. > Okay, I understand the consistency point, but could you explain why "disable local" shouldn't emit "command local"? I'm not saying it should do something else; I'm just trying to understand why the modifier ('builtin' or 'command') should be output in neither case. > However, it is worth noting that it's now necessary to disable BOTH the > keyword AND the corresponding builtin if you actually want to find an > external command named "local" by default. Cheers, Daniel