From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 00486226A5 for ; Sat, 6 Apr 2024 01:12:21 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1712358741; b=HWl4MLhv+0MRaZqgQyzVrgkAEB7i2oITPt/rU56yl6+WoOWy8FVLk76wTWJ3FicFhSen7PzT1d pDrmYiZqfUtZb9T99vt1QarFWEGbydja9cGn2scYrq3W8UXJiHcifFwDe+T0OxClK82xRdQjuL mMyn5NrdOjR3oPgfNc61Lgcf5jOs8zYiwpAj+xMfXyXgIwug7WRCb/WF4tG8W3iQzFuhiWMfDi LSjC2vw2E/o4rHfTOkNBQSlf2vOG8VO6h0+IKY3WFMvV4+FOGDEn1V/5uOnDzGwUq6Z09BAMs4 tMOIHPDQ5ShHHwDtsfhAFv0WgbO9tHuPQzQr4ljUCCZjPQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1712358741; bh=DRCAyAw+EEzS1RSC9VoZ8iYeTln/teA2tzZ5DZY1iQA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=nv3+HLZdNoL8Utj0xxnWPkJGJFVv8g5Se+ImfLvn2m8HWEyZ67xKTJWnWy3XuzKPwjmmFSgbjp z9/mMBOZPGmnc8Jo2i8cBIoCTK+zO+OMS4I9BayqSBys+OugFxMgmYgl1y7o8QGOWh4qpyWiId rFBmlXZI7L4kW01UzeGnZ/91TSQlNDEpbHevKOz3IeoP0YHHNMrnwnM4RCgpaUCEA+eT1We/YI YFk5g3nuVEARNPH57xQqLbBOgMvn85yMdorl4XaJKsppWkCRka1rHMdqTasmR1/y2SJqnrw48t OP7pNl90zPdDmT3mFgudMEFbpJej7dQn67grKIZ9KGevSQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-transfer-encoding: Content-type:In-reply-to:From:References:To:Subject:MIME-version:Date: Message-id:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=AJqkutMFrTf4bP1HXfPXHO7tNcRaZZ8KO5R5Yrh0IVo=; b=atARJz9AxyyFodvUNfNzKKs1De sBk59orSCl3+BnbwYNX3J4Uc3H402gPEFoLyFf4PFdmyCoeyHVpIkO6nyJLZ/SEAIn075d6DUF5qm iHRHYQ9pfmovyJy2KpPNQJkRlnNVzx6w/oU5W3aV/Ti+WdfaQUnpUHFM8LAsPqsWEW2Ff4CBc5Ths dMpHcSK/2CKCWbAnTttyMWMYBcB4pA+TgRS0CgIjCgqdPUoCzQEBhIg1M2ujP+ksHkjKzY8JJ9+4e Rw4YuT08MoxzfaBIa+vknBktIsongPxigVazj6qNoKH0NXxprlhsMw49TqA5t9Oh/hxNyfUANJfMU TjTwjeuQ==; Received: by zero.zsh.org with local id 1rssjM-0008lg-W5; Fri, 05 Apr 2024 23:12:21 +0000 Authentication-Results: zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none Received: from mta04.eastlink.ca ([24.224.136.10]:43933) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rssiQ-0007yt-8p; Fri, 05 Apr 2024 23:11:23 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta04.eastlink.ca ([24.224.136.10]) with ESMTPS id <0SBH12IXRSBUSJ41@mta04.eastlink.ca> for zsh-users@zsh.org; Fri, 05 Apr 2024 20:11:21 -0300 (ADT) Received: from [192.168.0.11] (host-24-207-19-13.public.eastlink.ca [24.207.19.13]) by csp02.eastlink.ca ([71.7.199.167]) with ESMTPSA id ssiOr2TuN5TsrssiOr9ipk (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Fri, 05 Apr 2024 20:11:20 -0300 X-Authority-Analysis: v=2.4 cv=deIj3mXe c=1 sm=1 tr=0 ts=66108518 a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=IkcTkHD0fZMA:10 a=gir0-LH0AAAA:8 a=7OOQvWzeKiaODqH99nEA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=aLewGyoHDmJ4ULJHWpSz:22 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudeguddgudelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttddvjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepteffhffgvdeffeelveelhfegudevkeduhfehheevhfekhfevieehjeejheefvefgnecukfhppedvgedrvddtjedrudelrddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudelrddufedphhgvlhhopegludelvddrudeikedrtddruddungdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Fri, 5 Apr 2024 16:11:19 -0700 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: piping surprise To: zsh-users@zsh.org References: Content-language: en-US From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 29779 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On 2024-04-05 13:32, Bart Schaefer wrote: > On Wed, Apr 3, 2024 at 11:49 AM Ray Andrews wrote: >> I believe Bart had a solution to that. > I can't think what you're referring to, but in the realm of the baroque ... It was a few years ago.  I'd plum forgotten to the point where I was mystified when the above happened because I've not thought about it since.  But I do remember that Roman was running all sorts of interesting speed tests.  I wish we could search the archives, I'd go looking for it.  I do remember making a typical comment to the effect that there's nothing intuitive about this subshell business but it turns out that there are deep reasons for it just the same. func  | ... ... I sorta expect func to do whatever it does, even if the *output* is piped into a subshell.  In the above, I'm expecting my variable to be modified, pipe or  no pipe since the intention of the pipe would seem to be to modify the output and -- I might have thought -- that's all. > typeset -gi Pnum > alias -g '|'='> ${TMPPREFIX}pipe$$.$((++Pnum)) ; < ${TMPPREFIX}pipe$$.$((Pnum))' Not for thumb-suckers like myself!