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, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6132 invoked from network); 29 Jun 2023 14:42:01 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 29 Jun 2023 14:42:01 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1688049721; b=Cgg1zoA2QpFt6kFLGSNCEWMmSjyfK9yW0w9+wRHXJsX1b/a5wmzbujzgNNpWSBSsIQ1gY+rM+r OAvWRpxtOrI8sI/qcaWdGS8xoaQM9cZgPiKRXfva/Nu+iT/xP9fPMOC4IIDPbT7qzQ5/vJL2kC HUGAeMfMIbkpHEcqCP0jI0Q2OjbJLEtHm9tvgMvRr+hhboWg2d/UklGfSSLiop5hxBxcH7Mx44 hIQMU/iorzxwm0D0s0OlOnabMBbGi59xIQkm6xwNSEp9uxOTPfxHvO3WGHmEMccnsoeOauBZjm wH2m4qk5LvHWo/6NBEj0unqK+rpwD0BiVgU7E77t9ME67w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; 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=1688049721; bh=vLcMvHUJw2NYZ+xAolKSp+mYJCJ+RfwMNPkedLnRGxY=; 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=rBF7ZLkMpDTTMNYdWF3O1TT3TY4tsY9YW1OqcY8AnfJBgH3NMa6R1K1yi954l5YmnrXNcpQTEA QdPrBcN+P1Zp4pQ3/Pw/j48/qawM64B0DU00pbtD46TE3OZ19McE3UGusQ7Yau8kD2AJgh9KcJ 3SEYgmIhAzdqc8AbEge7raJZqgxTbu3YZairBuujHUVKWO1p1jlK1l/EUBJxHBtx3jfZEEPwId 7v5EUiRfFn8YlMzU/DftYCksZTLilE0JNu+ihnwN1SoKXWPs2sXYgv8YT+uQg7iqGB4QvrwfJh 3jf2MSh9ko7u7NH+8hhQVZ9beZS3Q8UwUrOwP4NVH+o5Cg==; 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=+VvKz25BMOVJ5bvXVfBb/1RsrotzVMfgof5uU3fSvMY=; b=ZP9XaiEJoi89SKvtmwPG8mkTyU PVmsu6h3TGRvBBLydyKL9ehqgBxTkvHzGkIhrP3LwmnON+uPeuY557F0Z26kK3TCLRUF8FU0SK01N 7owl0T5VwqkbXEL4N25TfTiI7F4/XlzmicJP9YpvdgM+qVcO4rAKoYGBWeTRTdQ21ZvNVaqbgep/d Fif7/HtD0UGoO6gDzG8BDgp+Ylb4nbZUoYFuPMsLz1j/JtzUYcIcn8SrrJc2Mp9+6tg7DsHcbWgTa Kn+6d1EtcVFYoxQIuZ5CXT4Ke7sQPCskIB+Q9HZ0Ftbn2wtrgsAYi3K916U3LQS8Oq8947A7vSTW/ KMHyutug==; Received: by zero.zsh.org with local id 1qEsqP-000OUv-Gt; Thu, 29 Jun 2023 14:42:01 +0000 Authentication-Results: zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; dmarc=none header.from=eastlink.ca; arc=none Received: from mta01.eastlink.ca ([24.224.136.30]:42789) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qEspk-000NmD-QC; Thu, 29 Jun 2023 14:41:23 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta01.eastlink.ca ([24.224.136.30]) with ESMTPS id <0RX00HCL0QUXEDW0@mta01.eastlink.ca> for zsh-users@zsh.org; Thu, 29 Jun 2023 11:41:17 -0300 (ADT) Received: from [192.168.0.4] (host-24-207-18-108.public.eastlink.ca [24.207.18.108]) by csp02.eastlink.ca ([71.7.199.167]) with ESMTPSA id EspiqOI46zzl5EspjqW5UF (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Thu, 29 Jun 2023 11:41:19 -0300 X-Authority-Analysis: v=2.4 cv=EMHAkXVC c=1 sm=1 tr=0 ts=649d980f a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=CbHJT_deDjgP-zLnHvkA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrtdeggdektdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrdegngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Thu, 29 Jun 2023 07:41:18 -0700 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: Bug/regression: tt(RANDOM) seed not updating when $RANDOM is used in a pipe To: zsh-users@zsh.org References: <25FF68CF-F93D-4745-84D1-A97A5ECCA348@gmail.com> <36f09056-0f1a-1b8a-dcf8-0ab222857ea2@gmx.com> 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: 29094 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 2023-06-28 22:42, Bart Schaefer wrote: > The LHS of the pipe should be a subshell, so the behavior is intentional. > This was, however, an unanticipated side-effect of the referenced > commit. So it feels like a bug but is theoretically correct even tho it was 'fixed' by accident?  I'd speculate that nine out of ten people would prefer the 'bug' since it's the intuitive behavior. If one wanted to preserve a value, would one not do that explicitly?  Just my two cents.