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 16921 invoked from network); 16 May 2021 14:51:26 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 May 2021 14:51:26 -0000 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:Content-Type:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id:Mime-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=qSidXdQjv2zlD/WQfDZ71hwW1SQkwqHwdzxJYbJ6oDs=; b=d3msR8bG9GFYwSOjEnUh4Nu+6X EKRr1DHvg1fmWRi17LH2Mm6m5YsH8DjIsZ47fFJLqvQVJ+9DvTTVMzK6WBcpumzZOagWTCDNIRSga gufNV3G9Uc6htUB5c93oy9xYQEt4lQzBCX4+ycYujvDteKXhtd70o3iCWEuK0va4131AyOXlVuBZM 4KHzyp1l47H43pEPCo+nwo0kZ+YIZ/vxPdQ7hS8jprfuzmEMl+Jg8TayPCG42CxXHHLZloPD3XNzs uzBErEziSA5ynwKCoONSXveRqbJwYVtyuRiu6bJldIb1u0Uxz+6T2G/LX6J4+XF9VhIVxsSpC10fO XGYteKzw==; Received: from authenticated user by zero.zsh.org with local id 1liI74-000Ji7-4l; Sun, 16 May 2021 14:51:26 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1liI6r-000JPN-Mt; Sun, 16 May 2021 14:51:13 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id 3E75427C0054; Sun, 16 May 2021 10:50:55 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute1.internal (MEProxy); Sun, 16 May 2021 10:50:55 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeifedgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderreejnecuhfhrohhmpefnrgifrhgvnhgtvggpgggvlhojiihquhgviicuoehlrghr rhihvhesiihshhdrohhrgheqnecuggftrfgrthhtvghrnhepieekjeevledugeefiefgue elgffgtddtgeehvedvhedviefghedvffeuvddvueehnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhihvodhmvghsmhhtphgruhhthh hpvghrshhonhgrlhhithihqdduudehudekjeejtdegqdduudelvdejfeekhedqlhgrrhhr hihvpeepiihshhdrohhrghesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id CDC71A00079; Sun, 16 May 2021 10:50:54 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-448-gae190416c7-fm-20210505.004-gae190416 Mime-Version: 1.0 Message-Id: In-Reply-To: <20210415205806.GD6669@tarpaulin.shahaf.local2> References: <20210414150337.GA23748@tarpaulin.shahaf.local2> <994269365.178120.1618413776846@mail2.virginmedia.com> <20210415162115.GB1002@tarpaulin.shahaf.local2> <2d162aaf0f19dfc18b6ee72d35b77d454307546c.camel@ntlworld.com> <20210415205806.GD6669@tarpaulin.shahaf.local2> Date: Sun, 16 May 2021 10:50:34 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Daniel Shahaf" Cc: zsh-workers@zsh.org Subject: =?UTF-8?Q?Re:_PM=5FTAGGED_and_PM=5FTAGGED=5FLOCAL_being_set_simultaneous?= =?UTF-8?Q?ly_(functions_-T_-t_f)?= Content-Type: text/plain X-Seq: 48835 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: Hi Daniel, On Thu, Apr 15, 2021, at 4:58 PM, Daniel Shahaf wrote: > I figured I'd write a test to at least ensure we don't change the > behaviour by accident (it would be too easy to change the if/else chain > that tests the bitflags), but ran into another question along the way. > Look at the first added test: > > diff --git a/Test/E02xtrace.ztst b/Test/E02xtrace.ztst > index 10e8b8886..520b7745f 100644 > --- a/Test/E02xtrace.ztst > +++ b/Test/E02xtrace.ztst > @@ -225,3 +225,38 @@ > >the definition didn't execute it > >runs > > + f() g > + g() : > + functions -t f > + f > +0:functions -t smoke test #1 > +?+f:4> g > +?+g:4> : > + > + f() g > + g() { () : } > + functions -t f > + f > +0:functions -t smoke test #2 > +?+f:4> g > +?+g:0> '(anon)' > +?+(anon):0> : > + > + f() g > + g() : > + ( > + functions -T f > + functions -t f > + f > + ) > + ( > + functions -t f > + functions -T f > + f > + ) > +0:ensure the behaviour of 'functions -Tt f' doesn't change surreptitiously > +?+f:6> g > +?+f:11> g > +F:If this test fails, the new behaviour may be > +F:workers/48591. > + Was this something you were planning on committing? vq