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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22656 invoked from network); 13 Oct 2021 03:05:47 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Oct 2021 03:05:47 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1634094347; b=TOdKtd2XzyKQEansDnuqmPmZpa+smIT+Xx3E6OtWhQfYVDYff15ngCnFjL2ooeZbcyxRzwGYGP rhxe3JC9DuOurdi0RtczESYskHJ1piXLtJzjl0W2KztWNckuRENEmq+V9Mt4CwS2O25w+xdijK FSxk+wHE09KssjK5aCFqF/DmMTQ69os+B1nO2EQVFoqU50u7R+3pjjMeRRJ2cYPPD5nb/+YUFm pCsCD+hKaBn/FjBZtUWK7t+ezNe6YU8u6iVhF7CPolZ/Dqo3wl1CVDj0B3Etg1poBG4S1KFjDZ I3KOFLNg/V0a2t/OrgA7VRMXLRxiWV23f1zBfcFCVN4hFg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f44.google.com) smtp.remote-ip=209.85.166.44; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1634094347; bh=kXdszIdhSzL8eOI9qiz0kqWxZkS6+NMoidBQxmlsogU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=RGOyApz853zlTC9YXNhw6xqOaVu0cgAdyUJE5IQ8pJn6oDiB8ZHYb9WjSCIHE1mnpPglQt3zr4 T1jF6TSIgzgtmQN2TgnrzCjLTnbFf5iktrVp+2yDR4LArcZJ9svtC8FqIJj0TmQ9DPCThB+dqR w92Nod1LjQH3MuiecXUbaIAyOlblNVOti2yk3dm0rYz4YE+j9JdMouGsZ5n6T1jkxpRiyVR+UB 5EVL0SLQdxaQ/F0B0gTg9dRuqXl51zJGLO9WrfeHYsPyX8fkxMmYt39zdQ4KnnNaqYh9YwjbSz YFkOFWyZgnY+dyYyeR38NSsPEOmk1JCNcueAlVnBORbe0g==; 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:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=qSvt6Azk8Ewo0ArDb+kmwpbjWZloU/MXxSZezLigQ+s=; b=RF6kiKLZF25gLzqEwRppk/g3il 5iqSX1wBit3arO6JkImE5knvS5EvA9/hcwTa25ls6goPkak38GWoGgYxqSNXzZCkJ7RPfRFDnoyiV jbIq7F0KQ+bEMLvXuR/Cjw3sI0DUHTMjYknR6mjoK5XYQ0OaDff3JcUPO9Adizg4V0BVaNrtNSW3Y Oeyog4NaZQxKB+uoODCOX/meJJF7Qk2HCT1y4bYmhg3QD4prv98TWvZSSlvfbG/i1IzPBMVFZ5XES msueI2zAw1XHkBScsZS+l2pivH3x20R6V4rK+ockslULmMWOaawWYsYrFbiu7cOwJ14g6FoZgpPEx dnA+inhw==; Received: from authenticated user by zero.zsh.org with local id 1maUaO-000P8z-Lb; Wed, 13 Oct 2021 03:05:44 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f44.google.com) smtp.remote-ip=209.85.166.44; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f44.google.com ([209.85.166.44]:39639) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1maUZ8-000OQk-Ns; Wed, 13 Oct 2021 03:04:27 +0000 Received: by mail-io1-f44.google.com with SMTP id p68so1160223iof.6 for ; Tue, 12 Oct 2021 20:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=qSvt6Azk8Ewo0ArDb+kmwpbjWZloU/MXxSZezLigQ+s=; b=pqs/CMADqOg85Xo3UcIaVKIH2ADQGmLjj9a6bF4z7W1Mg4s1mVVr5GklCzHzsIpZ6r EDN2aGjVSiWQCNCx1qXigLb45zkZMdh80a/cxW0jc8ghW3JWW/M6iL2crfR+qpA3S9EK PVDtDrLFGUwqsuQ4UFIK0f9CgWIcr4D/vpuzftqA+T12oKGn9LnJNp2D7yjoaB5BSiBm YqSvu5ATDE42WrMDxOzDezVBsgusqGgar461AWh+GAsMfcVbGjTZxPGevZm6khLRIm1m n6ehybqL5HDH+Eh0bRF2DuqTfcU1MWBhhiwgGye9wCE0SFDwHx3AiWGOC6Y8kJUsxHL+ PMxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=qSvt6Azk8Ewo0ArDb+kmwpbjWZloU/MXxSZezLigQ+s=; b=XquFY58KHacUN0xdJfUXpP/RkUx7N2u5mG7PIGWO/v/mdAlJJR4N7btKhIRJ0NxuyG snAjE7egyalnoU2BQoZt+yDj63foXdXiL8A4V3XEI8NrnRpwLxHjWUY2NyIrO/vkEd4t eH7ktQL14PVF1Qcmd2hOcpGBnBRmcHZ8FKdWJiEUWv3Z9ubXxkl/MBHDTjQejf6dmtJP EdDvAUj/ENooRrOIKCk1/gasgZlXJixzuJqNDakKxrFMWHwMmxbD/AvlxoYtWM9+Toyp F+BNEDRVyYGF0Z6qJNWgMPHv0qwJta27445scfzmaj35GKkWJVZWQy71v9odiyO/51k8 3Vcg== X-Gm-Message-State: AOAM533ci77rYW42DgYsFtdEM5x+G2oDnjg8u8Zn74SD6UOUlMpdfL74 I2nFiuCt8mBwnSXm/LTKw9awSnoe0bjGEjlOF9+Kqke7VwU= X-Google-Smtp-Source: ABdhPJw7y4g0vUgB/9V/dWivS5f2ZiS8u3M2xC60vmLslTEoeV1cQHSDfHe42+aH605jyPf2XbtsALLN1aKzwAE/peY= X-Received: by 2002:a6b:c886:: with SMTP id y128mr23462260iof.213.1634094264718; Tue, 12 Oct 2021 20:04:24 -0700 (PDT) MIME-Version: 1.0 From: Pier Paolo Grassi Date: Wed, 13 Oct 2021 05:03:48 +0200 Message-ID: Subject: functions -t To: Zsh-Users List Content-Type: multipart/alternative; boundary="0000000000002d999305ce333889" X-Seq: 27229 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: --0000000000002d999305ce333889 Content-Type: text/plain; charset="UTF-8" Hello, if I do functions -t funcname inside a function (even with emulate -L zsh) the function funcname is traced even after I exit the enclosing function, eg: trace_funcname(){ emulate -L zsh functions -t funcname funcname } > trace_funcname funcname is executed and traced > funcname funcname is executed and traced (but I was expecting no tracing here) is this expected behaviour and how can I disable the tracing after trace_funcname has exited without using functions +t funcname manually, if is possible? thanks Pier Paolo Grassi --0000000000002d999305ce333889 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello, if I do
functions -t funcname

inside a function=C2=A0(even with emulate -L zsh) the function func= name is traced even after I exit the enclosing function, eg:

=
trace_funcname(){
=C2=A0 emulate -L zsh
= =C2=A0 functions -t funcname
=C2=A0 funcname
}

> trace_funcname
funcname is executed= and traced
> funcname
funcname is exec= uted and traced (but I was expecting no tracing here)

is this expected behaviour and how can I disable the tracing after = trace_funcname has exited without using=C2=A0functions=C2=A0+t=C2=A0funcnam= e manually, if is possible?
thanks

P= ier Paolo Grassi
--0000000000002d999305ce333889--