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=-6.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6138 invoked from network); 6 Oct 2022 21:59:59 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 6 Oct 2022 21:59:59 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1665093599; b=niZFOBVu1Bfri8ccdY4b76/IXzjME+neJ8wzkP4NV7lM/qYC9xM278QEMVsPitUyImqRLGWAeb CT89AKMMx+ilZagNtfIu5aYLkjwWgA9X82nkMLiHss2EZjU+V514hIqBPztoIKF2YZ7ZD5fSkB tjQIIvjV+e/0F58ikueGttxIENogsNfnA2S+WGvEyprLR0nlgSmR5YxLiN6ZI+FV5t8bwgs04Q qkGNHelLfy5IuLG59QKSnA17UT7/1SGixIzLJXxQT+uTvdG6XDufdqUmUR8ozMt9zR6fjouufo MD2sZfjHAAjYGS86iolqwjt/RVyI0p2j9Rz6qBZT2TLpOg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; 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=1665093599; bh=+r9WRdmgvPHVAWHcWhPTnGrViz29FpyONLUTakLvopw=; 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=Sdh5Uc3fcEYJCm+nyx1rP00Ifu5k872MOiY/vqHp3nKas3KavfousfjIJsW3oFx+izN54KQrtf 2s+b672U0c8neCQgCaNlDlBwW4Lf11ClCpIBpWS29LSgHEp0wluy/i5AeiHCB4NQlyYBDgAZiy GoqnpAFpI1Ig97guXxTTBhM1WkYDSJwPbWISsyiYNJS3CW5ch2TL5B5a09G8BFYFFR8K4mNZTK 4eHxigKdb+8W3q1go56p89Gfmtr4m4BX0VjlLaCSMA+nLwQUPLTu8FJ/uQWZ9PofBUy+RQxqcV /l9pxlyNeCGd2AgYzRJ8NjnrtpOxCIup5AYqjLTvC2qo6w==; 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=lq0MYDR1iUNKCfM/PWOhy69AWnseZIHiZefGCNkETJk=; b=KgggCBvdF/8Pr8k/vEi+G+KBrd XhMDHkyFpsxISwQ/lWeAbgT16caj5DaTjUw1x9l7xYYpE9Xrf8/+sB7HfSw6GrCjMghUXqZd0m3IN 1n69rRFGHxRU6E+OjdqVPpTJokTOPvFjcb4ETVmlRuiGz9dgsP2OybjS9/zvPeJLEDdRtQKWzwcvL NhQ4OIT4tK0AgECOj4SfBf8NoMvsXpwowU7pX1OSwWrstgA/AHKr942pQeoU5scqgS7H64jQjpaJZ 0XmPju/c3OJKKTbsCHb/RH3mh9bmekbaBuodoWkMKb/2eduvJ2UUiwfZSnEknfPiGuioy7B6w/5V2 eYBgqsZw==; Received: from authenticated user by zero.zsh.org with local id 1ogYuM-0003rb-OH; Thu, 06 Oct 2022 21:59:58 +0000 Authentication-Results: zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none Received: from mta02.eastlink.ca ([24.224.136.13]:54364) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1ogYtI-0003BI-AF; Thu, 06 Oct 2022 21:58:53 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta02.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RJC00F4XOX6EZC1@mta02.eastlink.ca> for zsh-users@zsh.org; Thu, 06 Oct 2022 18:58:50 -0300 (ADT) Received: from [192.168.0.4] ([24.207.18.108]) by Eastlink with ESMTPSA id gYtFoLu2Glgn7gYtGoug0e; Thu, 06 Oct 2022 18:58:50 -0300 X-Authority-Analysis: v=2.4 cv=NL8QR22g c=1 sm=1 tr=0 ts=633f4f9a a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=y69ypTBM7yy6jIg9KEsA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeiiedgtdehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepiedtjeffvefgtdehgefgteekueeggeeitedutddvvdduteetffdvveelgfeukedunecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrgegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <8b1497ca-5d26-3e23-47c7-1c85b7c4fa73@eastlink.ca> Date: Thu, 6 Oct 2022 14:58:49 -0700 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: unexpected unmodified variable Content-language: en-US To: zsh-users@zsh.org References: <1774a1bc-c353-4e16-80a2-0082457de6e0@eastlink.ca> <3bf17a2cc56cbc65fc0ba855fe9c7d2d2f63befb.camel@ntlworld.com> From: Ray Andrews In-reply-to: <3bf17a2cc56cbc65fc0ba855fe9c7d2d2f63befb.camel@ntlworld.com> Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28193 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 2022-10-06 12:28, Peter Stephenson wrote: > $(...) causes a shell to be forked --- it runs in a different process, > prints its output to somewhere that's collected by the main shell, > then exits. So the internal effects disapper. > > > Returning stuff in a sane way is a real weakness in shells. > > pws Thanks Peter, I sorta suspected it was one of those subshell issues.  I must have gotten the invocation wrong cuz I had no luck making the variable global.  I ended up sending the output to a bleeding file and then rereading that.  There otta be a better way. >