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 2799 invoked from network); 20 Oct 2022 17:52:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 Oct 2022 17:52:35 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1666288355; b=RdSFcU3R5AJH3MOJ3J1k3nEdIxlOE6GKuzesQ0bGClJr8ypMcXOS1EZwATkBYp5OsRzVNIBtbV uCT8T0AH+NjKlvRN8+lJqfds3TR4ukf8rBXfmoFW7l9UsnbwKXv/ONQLaTDw9z6zJ4r+3dPL7u fg60ZiXXwYAEy6WwaQwXtyy11/HHtsbI7UTdR7pv7KvpmJGTF3s6tRUPyYL1QpjZ84gLEDM7eW ofqI2RBDzx6Ep8rP73DPGqdTPYJWRkMGAK4/EwcDXKSbj7HS8xWOaQORk5j6eBNh2f8/oGjZLL BUm4VZ7NO1tS4mTT8/9hORT0ttTizFYSzx5Ft2S11gSV8A==; 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=1666288355; bh=341NQU7GTc4mpwvESl3jV2ltyzh8Jqmcr8rZZ3PfQYU=; 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=dcR4hW+bcISF2l1U45VrOZjmREh30AebSXVw2mYp+VRmX8PnuZhvQplyzLa0zucjTrU/ildN3U 9U/WCzmMfaZI8k3G+lSltsqHV+NsGoJIcxumxJX/4kMt4mHWe7HLVNc8MYGmYap+byyBs30YN1 Vf1EfgAipSsufjJVo1sz7FN/+5w/zlpsiLsROGh4TCRIvk+9hWH0lK2e9z+Vd5bIBRZ4pPKuxw S9D6B9GBepc94xg3VknU+WEy7ar2CzlZuzzMpR/N+VXvynyijfO1TdyLC1dGrapvr4MPGgLOLm HoFUBrLIyksWnlwFOarKKXLPsiSLmhfkpYRRLnWbIYBcNw==; 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=WIEa5vjbBpJp/Pxb1xakpXRjCBaChU2fcHRtAsqioqI=; b=XLfbdp90CfHrIUZpioBkxUbj61 mwYSNethWIW8vv/QySG4W85wXf6VoEaEYBQLxxQ6lk1Y9JYX8By5SpRFLw533rINqn0q74TOJEmD9 g85iO6A5FyRxgaVB1HcrTbd7nyLUmw8Q2Qj7cU2pcI6cKZlttF/wwIYzBJoMrAJCaSo+4ZENmlzZz EKEYvN6pzUjGRMvEtzrQtNUObEUmmvNNvMn3wx86caBSIAOb7MOfm35PX+xArxdqyWTwcEWJ2xd2X 3wGdMfYVyY9BY7BL4tL/ZOjAQ+o+uPpcmQj6o36JzKZYMLaabNJSACRYJNu7HxF1MHdzGIqeYQUje Gh6238QA==; Received: by zero.zsh.org with local id 1olZic-0008L8-NC; Thu, 20 Oct 2022 17:52:34 +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]:52742) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1olZhS-0007dA-Du; Thu, 20 Oct 2022 17:51:22 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta04.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RK200E5NBLKIU50@mta04.eastlink.ca> for zsh-users@zsh.org; Thu, 20 Oct 2022 14:51:21 -0300 (ADT) Received: from [192.168.0.2] ([24.207.18.108]) by Eastlink with ESMTPSA id lZhQomky2lmAklZhQouaxR; Thu, 20 Oct 2022 14:51:21 -0300 X-Authority-Analysis: v=2.4 cv=Y/M9DjSN c=1 sm=1 tr=0 ts=63518a99 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=KEl4367w71g3NyvOKN8A:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeliedguddujecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrddvngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepuddprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <5f18c162-e111-21ba-3ebe-ece09a477ecd@eastlink.ca> Date: Thu, 20 Oct 2022 10:51:20 -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: From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28236 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-20 10:25, Roman Perepelitsa wrote: > Try typing `typeset USER` in your interactive shell. What do you get > as output? > Take a look at typeset_silent option. There's part of an explanation. 'typeset -m' cures the problem but why is there only a problem within the function?  Why this special handling of typeset?