From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5395 invoked from network); 15 Apr 2021 16:21:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 15 Apr 2021 16:21:35 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1618503695; b=0Zl4LcF1JjvsPPX93YJVlai45dITRDlVofNLjICqUMRcZl3CxeCQOwSqu5p7YiiOf7ILTZoSIW EAMtcV6CVB3WEWo2G45oENw00NUP7XJ2LTuEpJ/JhYjtwT54kkQMEbForfNw4qVanqK/BHEnf4 cz03dscFzuqhUAAlS8RJ507l5CIWLqgpyil0HSkzYFGh76Fbz7LqMRTl4CPvjWORjRnPF/cO7x 2anpaDG4n/7walWQMiImdF96FXDmj3oQC2ySQBnHOVlZd7e/n0+3vHpP0ya8+57doWPGu4AduC Tw25oTMJhPAxz/pYE/xEZU1IR+0mUmn7jAp0Xce/cRtc1Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out5-smtp.messagingengine.com) smtp.remote-ip=66.111.4.29; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1618503695; bh=pQatOlKFX3phFgHmekjcmKkwiG8517UOAwGuUsAisaQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=UpVxvWDT+MER864f2mcNipQI+mzCC1djYA4zQ3KtBZZMWgkKSgPZDDjHOmpy0JWVVkXKb/srXk 6tbirt78DVhjZSpQQEAEJMRn6Fn/juSITv5c0TPI1IyMWetCc7MQWFtxox+Z/fj6+sCJDVmHtQ eY5NxFjLfGmkKg+BAuOkBa1GpHitHFkwbIc0ZCUsLHP5TtKaLAdOL6kHnvl+seTkD+OasJv0TB RxHdJe/oogRyGiHKFiNVv4ct2OB+GKdQIHrzsVbJJ29nsorz6inS7Gdcbe4BuMtYcbCyMqZksS bZSr6r6K916f2RLmPlX4byET9Vnc5aG6iMhN21UCT7ZiNw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID; bh=5UvtrnZzW1QyxGffDDgLlTKDQVraRSgnmy4EPBQcEfw=; b=qHESevVavaDYs+8zIp+g7HZuGa XUmZSfreRKB61dwvul5hLukpclD1abDDbl6gfksKdfpFr5rN+RFkRz96CTGmA5REfZB81Ualhw4kj XFxomloxyWgsk2wj4c4Kee5wOwwFENPl04js35OIK+p5oecHyV25F0GyB66OyNewi35dMaKieMOG/ 17yXIg5tD0lYSovCs8TVIdbJuxVVceWARA6QVRUnJDGFfpDN/vLPuO3eHrMtnDPG9zmzSMQr8lJAd apjAQDxAJOG1jY0Y6fBxKc7fKxe65iGnqUastcQblBu6bio4EaJUAtiFyRhUbiXI75jADmoxKJHXN LT6+3Fog==; Received: from authenticated user by zero.zsh.org with local id 1lX4kJ-000BY0-5E; Thu, 15 Apr 2021 16:21:35 +0000 Authentication-Results: zsh.org; iprev=pass (out5-smtp.messagingengine.com) smtp.remote-ip=66.111.4.29; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out5-smtp.messagingengine.com ([66.111.4.29]:37731) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lX4k2-000BHj-LY; Thu, 15 Apr 2021 16:21:19 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id D9D445C0090; Thu, 15 Apr 2021 12:21:17 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 15 Apr 2021 12:21:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm3; bh=5UvtrnZzW1QyxGffDDgLlTKDQVraRSgnmy4EPBQc Efw=; b=kL+syREC+RvpkbedQ+oGQ24UZJ6Nathvxq6KHrkAVZvFciwJe3jv4fLq qby2D25Rnwifb0B9ncItvcr3ZAjJhzgQDH+GxCgbih6QQiCCXvfBoyt/0+0BOdF9 TKMW9Mz0OtXe4rx/aswrgWNQ4M2UU2NrAK1Lrrbin6qyp2CGiuVZPRtLOnrJNn/y lUgbfGkFbOi6qWRMoYWlKU8zmXT8JIa7cz+JljB3zB3NRF/HkgOQ+K/tgTKOSUju pssAU4HAJWkJxm8LhLi2p7mzFQjwQpzHmP4KG5FqAiW/5aqbhdwDusutwoamWDMX PjTyQIWk1iUkzq9DZ3jH2BUNOZ3CWw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=5UvtrnZzW1QyxGffDDgLlTKDQVraRSgnmy4EPBQcE fw=; b=AC8l+Zu1BvnZT5IX2sfoa+/UUfp43J1JcsFyJau52esS6aO9UhzzC4sxl +5F6byXo9epLM2FVwaSkITJgTYLxuJ8PoYRftPOtazTj65nVw+mXGDH69HlOo+Y9 SNLQ3CETfZ54OUOCxpHyu/XDeRTepDATLH4IJ7uW0NCieZxn26c1BW4l1tPAVSQ+ OQFCO55e8GesPdqelDYM4XjqzeuDCKTjAhj/mlnbOu+8hmcVtl68UuzEGDq1A3MW j8R9p63H1iCi9ytJnN0oUITX/rkGeIpr08K+ctiPwZwJLnNEn4jqFjcZDPe2cD2R xE+afl6o1MtA8BbJkQvuyKmfDX2vg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudelfedguddtgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggugfgjfgesthektddttderjeenucfhrhhomhepffgr nhhivghlucfuhhgrhhgrfhcuoegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvg eqnecuggftrfgrthhtvghrnhepgfekgfefjefgvddvgfdutdelleekvdefteeitdduhfev veevudfhvdevfeefvdeunecukfhppedutdelrdeiiedrieefrddvfedtnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghl rdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Received: from tarpaulin.shahaf.local2 (bzq-109-66-63-230.red.bezeqint.net [109.66.63.230]) by mail.messagingengine.com (Postfix) with ESMTPA id 17E66240054; Thu, 15 Apr 2021 12:21:17 -0400 (EDT) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1005) id 4FLl2g66Grz3dR; Thu, 15 Apr 2021 16:21:15 +0000 (UTC) Date: Thu, 15 Apr 2021 16:21:15 +0000 From: Daniel Shahaf To: Peter Stephenson Cc: zsh-workers@zsh.org Subject: Re: PM_TAGGED and PM_TAGGED_LOCAL being set simultaneously (functions -T -t f) Message-ID: <20210415162115.GB1002@tarpaulin.shahaf.local2> References: <20210414150337.GA23748@tarpaulin.shahaf.local2> <994269365.178120.1618413776846@mail2.virginmedia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <994269365.178120.1618413776846@mail2.virginmedia.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 48588 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Peter Stephenson wrote on Wed, Apr 14, 2021 at 16:22:56 +0100: > > On 14 April 2021 at 16:03 Daniel Shahaf wrote: > > As y'all recall, «functions -T» and «-t» set the XTRACE option for calls > > to the named function. > > > > With that in mind, in the following code: > > > > [[[ > > f() g > > g() : > > functions -T f > > functions -t f > > f > > ]]] > > > > Should XTRACE be on or off when g is run? Or should an error be raised > > before g is called? > > > > And if -t were set first and -T second? > > The way the documentation is written: > > The flag -t turns on execution tracing for this function; > the flag -T does the same, but turns off tracing for any named (not > anonymous) function called from the present one, unless that func‐ > tion also has the -t or -T flag. > > makes it sound as if turning off for called functions is more powerful behaviour, > in which case -T should always be used if specified. But it doesn't actually > *say* that and could be rewritten anyway, so it's not much of a steer. Having > one flag cause another to be ignored is pretty standard behaviour and relatively > straightforward to implement, though. So, to be clear, you're proposing that setting either flag should unset the other? Sounds good to me; just making sure we're on the same page.