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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26523 invoked from network); 29 Nov 2021 18:05:48 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 29 Nov 2021 18:05:48 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1638209148; b=BcyzJGxlal8mH8vH37LIBH+SczmLR5w0mbo3zUoyfTKsCQa6Y7/gP6cOcO0YoGHN6J+yMshJVo Y3cF0QNtjfqgVEyV9h9uLKsmAqEbGN7wpH+iGVzCIctiYTB5y1s923gAdYOx8O9TFaXWxuutam OLjojWdSEhZXU+nkKzHzCI1G/Le+bXAtpaR0zHRk9QHAbXawYNJQd45+BR/AtSGMoacDGMV3Ub BhgH7St4+L9m7NXayC0h5zs889lWVHLosGvI6H6GSUYEHoD4LmCwphR/QL2VExt6Cw2539aH3y dxB6Ee+xnKHQUuHrIzCn4xznzPPIf3ZdkOqTYQhT+dUjrg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f178.google.com) smtp.remote-ip=209.85.219.178; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1638209148; bh=J7MAMhC7TV89fdyCr746a1hOrtcjrlLjspShqNBme+A=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=HHLG7ABTNrisZX6xZnbw/E60Z84I5L2k7mC4rHxcSZ9tJ/YLY7nNXVl83mFiF6aDaLNV2fbSnw D75H3GhJetI1XhoKqk/4tjXhEdiYmgUhKyTsPdRGNRrhXQXkJgxY6w+5hOaX9xWgLkULCMwweF /LjAKUIkXKYrBRqVlXrGmlJEFeK8Ea9SvkvjibRLkuct0tUWhwR/SuyIsD9uNFNfW0gIHUv6Q/ LSIcivo6bYwclChN2R25hKnu3HUh1Ndt+Y51mhn1oNOvXpOo6JHMZvpOs3q7MKV6/S2YsEqqtX fbN/k/5UAVqIPmDOPbSS5jlma+w2VQMc9uBRkAr1fspY1g==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=J7MAMhC7TV89fdyCr746a1hOrtcjrlLjspShqNBme+A=; b=V4aqHBz1gjY7EjUDpi/YU0FW9E iVThBv3lro01F75Igj0Bpy2NfyY5QHMs5GSWRBEjVFmE96g/xwQvU5NPJOcyGFls6qNHZ2iF0LR8K mteIUkc1J6bSbxqUgnDmIYKvhYz5Czp180cI5NiRkTutRnmqhTy+Y2+Wqd0ad/DcXuHz0QSfb1CrN ytEXw2LJ5xK3tw3nOnwesthLD48JfWtGMn1Zpw4XFZymOV2N6y1+Fy9ypJTQ5VH/E0f1WnYtfzw+m tSxc1mktLv+DQWiba+FtpEJrCf7b7Xo74z+QGEeXCob4zkllwXtS50b2gGt1l0qJSNNAzpDudk4tX 5DvhbTDg==; Received: from authenticated user by zero.zsh.org with local id 1mrl2B-000AXh-Iq; Mon, 29 Nov 2021 18:05:47 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f178.google.com) smtp.remote-ip=209.85.219.178; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yb1-f178.google.com ([209.85.219.178]:38808) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mrks3-0008Hj-Jx; Mon, 29 Nov 2021 17:55:20 +0000 Received: by mail-yb1-f178.google.com with SMTP id v64so44721203ybi.5 for ; Mon, 29 Nov 2021 09:55:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=J7MAMhC7TV89fdyCr746a1hOrtcjrlLjspShqNBme+A=; b=aXVE3hDKHjn1FyvYlcGKXKdnHr6CixTTMfkIi1McYA/pMm8QsFnog6b5ILwuaim6Cc 7YwXIHj/xKpB0sMSCtIvWLJw0P6SQdcZTkR2ZktrcQIU9KYAz1SYexgFU+OVS5goScii +IjKD0uxjIUtHEexw1spDI5rLkgqkJVpFHJ0gyWTT6zCwx8titYT8Bv/2+tiK3J+SUNV Ph9P8Arv+Dh2wJXVWb+9hWwreUGvTPU+EffVc6OatabNyq50kefqTVPjiziFhauMOB2t OBK0OIo5ZlMeLxhVejkrGJYs+QejVNfaoJbNcoDjxNm7XfP+tJvUWGQ+LqZJqhuA1TvZ hLVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=J7MAMhC7TV89fdyCr746a1hOrtcjrlLjspShqNBme+A=; b=SSzMWvgXiHMUukoxL0Tktvy1MSPeTYF+A5v4recdmhzCmdjFSojo6mY/TV2ai6pRpx sNa32vNMXeX+hS6Skw4Gbx4lFBQgYegpC4HNAZMWe5/LXkmclgO1+alg5Wscr/oqdwza 4XLP25FFxwyIqAX41jSm5TPpSLZTMmNLI3iZExpW8u65lk6vjjtQmBHNvK3oFVKEyqCU s398/TSzW9CXZCR1pur/sSM9gqkp02ijQxD5TmcTAmfunaNHNCxE7nMafD8NFoi+xFr4 Uq8MAQ69aWW9RiBrOt5DqgenwkoY8xfvEpczSTYol7340Qyx2I1aL/YpEeRC1sZJ71nE N4aA== X-Gm-Message-State: AOAM532qfQTLY0u6wC2g6su5CPtgPYEQ3edEv3AAxv2Ixcgurz26r0Kc 1xyhXrBIAUkHAfqrhYAuGF7PF7u0zBJQFiagGctIyA== X-Google-Smtp-Source: ABdhPJw3nhZ1A4M/EaQkQAmbmamZN4jGmBDjA7PgVlN/kSNgi89LZGM5VRjRltyQ015ExDzcf05hUKQMguNQ+pT1qMw= X-Received: by 2002:a25:7313:: with SMTP id o19mr7715278ybc.590.1638208518416; Mon, 29 Nov 2021 09:55:18 -0800 (PST) MIME-Version: 1.0 References: <272260155.566740.1638201605055@mail2.virginmedia.com> In-Reply-To: <272260155.566740.1638201605055@mail2.virginmedia.com> From: Bart Schaefer Date: Mon, 29 Nov 2021 09:55:07 -0800 Message-ID: Subject: Re: Source mangling in $functions_source and typeset -f To: Peter Stephenson Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 27390 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 Mon, Nov 29, 2021 at 8:00 AM Peter Stephenson wrote: > > > On 27 November 2021 at 17:47 Bart Schaefer wrote: > > > > The parse tree only tracks the line numbers of executable code, so as > > to be able to update the LINENO variable and print line numbers in > > debug traces and prompts. > > Actually, the original line number is remembered, and can be output > using a prompt That's what I thought I said ... > I don't think there's any way of getting this information without actually executing > the code, though. ... which is exactly the problem here.