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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23765 invoked from network); 20 Oct 2022 20:48:49 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 Oct 2022 20:48:49 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1666298930; b=cShHoGypYgujyIQlE0BParB/5mdFxyxuiXllw9S53PAGXcWktlV/5vAQ+CMkC0VGqB0a/2mWPo TF/146mljPx060W5OS6+fpJqULl/srvRpPzVfpx7Tqmoz5EaNVHzEbsoFOnn6VT46l9YMTHiHZ WmX4WHpw+MRQJ34QD3MiUd7Ccm3BJRTLNcU0WF57jMOfxxlIkWcoImsRQweYgMJggYYZDd0yIP /7f3Y5IYikZOMgDLfi2S0aR8jlkvBpQ3jlf4GbiIcNS7XPuoRJzIlKXwbRDXqmPSGieRSv/IlE jPLf+87Ou/ggwTaOP+FNJtw+caM/2m3VvecdurBi5eWKUQ==; 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=1666298930; bh=V7ovsnPt7dl5bsNLOazZtz0UHkV1vVME9xUipitzsME=; 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=T/cQFq2riz0UN9m5f4fyHOHu1VzqraIvj1XEuchDkaZyKCQ6q2lKdJyrH/Vd17K+UvW+1FrXdn rboTsga4gme8mFoOWgrfQ6Scwi9MHPZjkd8zMhcGXl7dqUosefspMA6YRAz3X8baSCl6PfQvGQ YWogz5RRIJF0rT4fUylUoX4W4AU/ENFHYf2Ed6mkhKN199YtODkTrKeMWdzblDQmDmJrrQZNav G8b2xZiMyTe7wQuEP/l6JkW5YTUK+QUbq9OR3BKWfz0hqINl2ShjJXe1kRe+zWF9Q+Bzy1BMoF AB0O+7kn09X5uDgqzCpmIfZBB+9+CBg9FDcfirXCSzvxlQ==; 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=JZB4K+XxqusNAjK+t/2mHz0FF+cpl6pcR202I/nx1lM=; b=dVtlWQzMvSepp222kooLALdnwP eH9u48H+/HJSSTxNGqj/Fzwfh9dXwWyO0LJXfguTnMJXjhJ4c9oaOdevpAqhxodvtmUKuWdO7bqAe f3XHKoLZzA5VXwYjWb+X8fulLvWB39Kl3DN90ZGigAQLbjFEVCb3mTwzSyIFAJgSuc3YSLKV1jncp YlV3pUyd5OfVvfUUhPuBtfmXV/WfrFx806qxSyWA/kckL/C1nj1t6rJoEiSJ/7JxXD3piXLQ+BpYn 0W/QG1KMFAi+osCeYfAba5AN0b/72RazR/U6hAvZ6L4MH8LSX9qfzWRoEH4vcxzC1WQcEtIRji+gA StsAmhYQ==; Received: by zero.zsh.org with local id 1olcT9-000JXE-K5; Thu, 20 Oct 2022 20:48:47 +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]:43765) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1olcSZ-000IpV-RS; Thu, 20 Oct 2022 20:48:12 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta04.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RK200MZGIX508M0@mta04.eastlink.ca> for zsh-users@zsh.org; Thu, 20 Oct 2022 17:48:10 -0300 (ADT) Received: from [192.168.0.2] ([24.207.18.108]) by Eastlink with ESMTPSA id lcSYo1Dxglgn7lcSYo2vul; Thu, 20 Oct 2022 17:48:10 -0300 X-Authority-Analysis: v=2.4 cv=NL8QR22g c=1 sm=1 tr=0 ts=6351b40a a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=BLNqsti_YQ-JWrnYKWUA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeliedgudehvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrddvngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepuddprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <552657de-31ce-255a-bc8d-7c9cd4b8eabd@eastlink.ca> Date: Thu, 20 Oct 2022 13:48:09 -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: var=$( typeset "$1" ) ... not within a function. Content-language: en-US To: zsh-users@zsh.org References: <5f18c162-e111-21ba-3ebe-ece09a477ecd@eastlink.ca> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28242 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: > Oh, I see what you mean. I confused you, sorry. It's easy to do. > typeset_silent kicks in only when you do `typeset foo` and there is > already `foo` in scope. Here, when have `typeset USER` in a function, > there is no `USER` in scope, so a new parameter is defined. I understand.  Mind, I wasn't trying to create a parameter, just return it's value if set, which is what the prior test is for. typeset scares me because sometimes it's a passive reporter, other times dangerously active, in this case I was just looking for information but it seems like I created a parameter -- which '-m' seems to prevent.  It's all rather Byzantine but I do at least get it.  Many thanks. > > I cannot offer a solution because I don't know what you are trying to > achieve. No small change will make this code look reasonable. It's not reasonable, it's a boiled down minimal code to convey my problem which is now solved.  I appreciate your patience! > Roman. >