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=-5.9 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 12281 invoked from network); 27 Nov 2021 20:10:25 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Nov 2021 20:10:25 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1638043825; b=kzY02wJv2q7pMYkVAZlb87vVSSksL3zQoLKspuS0l01EJSpV86YbWYkuWk11dwqWkQ620akEqf wBQEcyEylCaIBjhBgoDQyKS1u9CWBdS/2R5y+Glday0zpZe7kPoq8XnGbWzXKsrqe2XC6uXdZj IpkoC3G7J/8xCwI15bah+l5gVZOBnhpCOJBmp/2KlNMgtv3p8+1EiqbSMpuPMhyJLxh4ZV+SGd uYjvmpAK/WpMObMI9hETY+h97fKbt8OKkvSAu37sfLHX8EkZwI5S/SxOAZaefRl11hjN7UbKo+ jPpD6t/2fBRlG0dptqI668cNKGw0r6N9vGE3pOjd7YZEhQ==; 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=1638043825; bh=6LLnPmE4cEPzG3QQy7tkTknbNx3ScGs2qCY+zenUthY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:DKIM-Signature; b=kqbueSaoVEn8Ry9YkHu4cCyF5HSe2fV57LcRg2TCujJPySzjPPS7vtW20amZBZr7orgEC+Q539 wPxLMFUblfOYLzTyzYhuIp+u8eAGdLcviuLcqwkauEvb8YTP9RR+QCjS2/5iqBW1ql4jYU5Dje deJJ/klTivnTy1drr41Flt/7xgC2Is0loDItGblYgCtL8lyCzIZDQ14/8Msq+JvHnc5WzGs02B 3Za2gVdTXMq23990xsU+pYIOfN8y5GPmimdzCTjcjJ+WNHK6CKsvhwtNHNQ3EFQ2TV65Ly0zi3 n+kCVNW1MO1oV/AXUwltCL+nUbH7N1RIRTX6iOOHxK11Pg==; 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:MIME-version:Date:Message-id:From:References:To: Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=bug1tlP91nNmxNVDlG9agWykNQey+0sj77cgUKzeAaw=; b=cP4ukrBqq2KTvRZluNhIM45Yrx /yaC8jetj9CzXbN1GFHFgCYfM/Df6Yonfwj8dmoBpRGFtpYAwRv8+Zz5pFzJlNJhpTuiQQPOlp/QH CLASfAIK+tQ9WbU44q4ALnAkjjdIeDiBhaYicPzE3I30NM8O/qHcdD7h/hjXbLT1h+GSTA3iCxMNC 8Y7Z1LytjTLGX/klTV5SpB0GOFSqHs2+Ogp9yxvFdSxU80NggLrpO+8xTDVASFUwYTiFDAqk9Fjya +/whb/dbmPr21+YQC0W6bSN2OZEnheRTtPl5tO8DIYqy9B8lkuy2Px3h3yGUgvcuk2AwT7c/5bta4 NNjKWQuw==; Received: from authenticated user by zero.zsh.org with local id 1mr41g-000NU9-Kp; Sat, 27 Nov 2021 20:10:24 +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]:36953) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1mr41C-000MnS-G7; Sat, 27 Nov 2021 20:09:54 +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 <0R3800AL3X1T1HX0@mta02.eastlink.ca> for zsh-users@zsh.org; Sat, 27 Nov 2021 16:09:53 -0400 (AST) Received: from [192.168.0.2] ([24.207.90.194]) by Eastlink with ESMTP id r41Amy8xy7w3Pr41BmLMtl; Sat, 27 Nov 2021 16:09:53 -0400 X-Authority-Analysis: v=2.4 cv=af6kITkt c=1 sm=1 tr=0 ts=61a29091 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=IkcTkHD0fZMA:10 a=5fZHXLsKjtZV06jma-wA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrheeggddutdelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepkedvueeuffefhfdvueeiteffvddtvdejgeeujeekieduheeiteeiheegtedvhfefnecukfhppedvgedrvddtjedrledtrdduleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdeltddrudelgedphhgvlhhopegludelvddrudeikedrtddrvdgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.90.194 Subject: Re: Source mangling in $functions_source and typeset -f To: zsh-users@zsh.org References: <66a84643-de4f-ef74-4664-d2400f74f2e6@eastlink.ca> <8ad53605-3f4c-482b-afb2-82a627de44d0@www.fastmail.com> From: Ray Andrews Message-id: <57ddc2e3-0c2f-6c4a-d94e-806fc386ac5f@eastlink.ca> Date: Sat, 27 Nov 2021 12:09:52 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-version: 1.0 In-reply-to: <8ad53605-3f4c-482b-afb2-82a627de44d0@www.fastmail.com> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-US X-Seq: 27373 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 2021-11-27 11:40 a.m., Lawrence Velázquez wrote: > Don't assume code comes from a file that can be read again. What > if the original file is no longer available? What if the function > was defined using standard input and didn't originate from a file > at all? > That alone could be reason enough, thanks.  The method would want to be universal, so, as you say, if no file is involved, then obviously only what's internal is available anyway.