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 22947 invoked from network); 13 Oct 2021 03:08:58 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Oct 2021 03:08:58 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1634094538; b=DOEJkYXb2GaktE6bhYVmKp36+U5gq4uQ6hF5BmTHvzVVf3SAJrHpF5DbzUMsho2jk7xWcIRB3D JTLKMK2QHjvPa8D5jIC56W3qW5BgyjMC7gfHsba7/L31PvY4A5HNbxu33CWI6HB9FBDgdMkhtC CwmAClr/UfsRa2B843Ca27bN4ZBxWxMjQ5X0jZB3XmaOvclfYbie7PpDRlCH2wNUFIWeqNnUkt LAxnfanjzFK/PmvmLDBTwsXTAlOnDN18Fg+b6G9sN5q25h9RgQ0yskSgZNu7iXRLx2TYM6Bj5r pBxTkqihLf8wLxwWtTNvbtJL/DmilMtAKiVL4QJdzn6w2Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-il1-f173.google.com) smtp.remote-ip=209.85.166.173; 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=1634094538; bh=aZGF6e5Y0yRovop3aiYMnN8G5R2m4Sr9XP1d7IWsFvU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=EllzcuCVcbK5QNN1P24svNxwH7+QhKcOmebNAoOj1zCAeLF3EHwWdtosCpwu06/ugks6cUXBGG B6hkOXifLAFi1LaGz3Kwa807p1ifR/rwZuk1DiQSuE3Vt1yKdgvNViZ8ZN8szHz2EgKnTUmZlH 9GUbTEH7WWXh4mSCVzSyzmdYRc36nFxBuJiztE7k6X89Y46mUqVvlENIqxWEnVYnXuqMIUp1mv K9NbR4AuFVrIrtjBY0Fy1WEokxrprcNNl1fqAnmyq9L0o5GNMkU7wSn+08bav67ZOoPjA8layJ fz6XFgCQjcE/TDDhQOOaZqp8gstSSfgYPu9Bt13YTDXW6A==; 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:In-Reply-To:References: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; bh=xnoRh+Ym7xzj2D1ucGlzA6kTtusJJGXbIO9Y/Yy3kMw=; b=FJPS5MN7ABQ5DpE77cpowz71rH wZ3N4sdPMhWLpDYzoreL4jt5g0xt2K/e7Jw+I39BvwpYWjBNOen6+JQYyDVSx5/HpcFNlBCDv5Mn8 3AuLLZxGddfGlj2q6J2TM2M6bxsWdyje/A1lFyhMWib/03UsNgClgnMYDUW1x6T5UZCcR5/1kpif/ PC8Orp3akPTg2fPDz51oPvnCHWtJsbXFVwW+GtNq7SXyD19F2W1fMqmvr3sPWAKExnbWV0HrHjx/p gxEvKVyJK1fX26NXCgloun+8ODvzzHtKmt/BEp/HD7WniqbE+fB3MTlTAqX3RsT6xRxKVoej9ynWQ 5IqGQDDg==; Received: from authenticated user by zero.zsh.org with local id 1maUdV-0000OK-ST; Wed, 13 Oct 2021 03:08:57 +0000 Authentication-Results: zsh.org; iprev=pass (mail-il1-f173.google.com) smtp.remote-ip=209.85.166.173; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-il1-f173.google.com ([209.85.166.173]:43760) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1maUbh-000PSM-71; Wed, 13 Oct 2021 03:07:05 +0000 Received: by mail-il1-f173.google.com with SMTP id a8so1110196ilj.10 for ; Tue, 12 Oct 2021 20:07:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=xnoRh+Ym7xzj2D1ucGlzA6kTtusJJGXbIO9Y/Yy3kMw=; b=g67l06DimoaViLqZVCIJUwrq7VRugqEAehXSf631q9nLWj9WIrEaDMpMQemQkIKyJr bvuY+8QS0AQlmKzqpFcKDivm1RmhfzZEuqTlVmwYmjuxFdXvh6Wj/IGE9YCikhfOhxEh RxvGIeByC05N320FZZ42flOoTjcdJP++JHpGzq9IpdfDm/6LVZhZaTr/0ZGAMBmWt+Be yRFmIq4VsKd/pYl6et25envVP38ju93PRtAZN0x8ssJienzkTgBH3q+Il8IP/iSJzT65 IC+SxWKsde8VfmcRBFh2dqYNpHmJ2Ov1K7YqHE9Kyb18G2cmHbM2NBJRgTPvhC8tI+zO BU0g== 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; bh=xnoRh+Ym7xzj2D1ucGlzA6kTtusJJGXbIO9Y/Yy3kMw=; b=SoWSi1ZMFEaHgb2kpQqAA7T7eiRheKncIg3DECS2Q7ao9m7EygWtbWVreGdVevk+LH yRybTZAoXW+16RKGD59dUmNkRlWOoJ5IPyN8aPxm5a9l/oGPWO6EsUA3elYrTpZmPS56 4vUCTyuwtu3296sak53aIwfzgO0Io74Qk2j5Fa0qlZ8z5b4ck/dTGTMFmxzjgqT3rkYS jiOrnb3kHWH7QKkQt4G9Aj3MT3R79i8QML0bdEcDaApgYl5ONB7zOF24CFud32tHE/DG hxyUusMmuifIeTykzXvqHmsoUbCHrLGuHXzc0x5LhxxylvyekIqW/dzETFP5m9igyFXx +n4Q== X-Gm-Message-State: AOAM530d3aMBo6pxQXyiOCf77Evb3SnKvUeImYjb+NRMyCXolSu5wc3I f4SUFhUiJ5rMVQ01UxNQXe4quMTHhMFVp5DLlRAnndJiZWY= X-Google-Smtp-Source: ABdhPJziacrb8CX+wlIu7eIVG+wmiIPghiwAi5wNtHeBE7hcKujIvXOh3grXIybhd6PYVP2dUouoUYhG8iNfhYpK74E= X-Received: by 2002:a05:6e02:1785:: with SMTP id y5mr26062832ilu.142.1634094423703; Tue, 12 Oct 2021 20:07:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pier Paolo Grassi Date: Wed, 13 Oct 2021 05:06:27 +0200 Message-ID: Subject: Re: functions -t To: Zsh-Users List Content-Type: multipart/alternative; boundary="000000000000a7848b05ce33413d" X-Seq: 27230 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: --000000000000a7848b05ce33413d Content-Type: text/plain; charset="UTF-8" sorry, it should have been: trace_funcname(){ emulate -L zsh functions -T funcname funcname } Pier Paolo Grassi Il giorno mer 13 ott 2021 alle ore 05:03 Pier Paolo Grassi < pierpaolog@gmail.com> ha scritto: > 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 > --000000000000a7848b05ce33413d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
sorry, it should have been:

trace_= funcname(){
=C2=A0 emulate -L zsh
=C2=A0 functions = -T funcname
=C2=A0 funcname
}

<= div>Pier Paolo Grassi


Il giorno mer 13 ott 20= 21 alle ore 05:03 Pier Paolo Grassi <pierpaolog@gmail.com> ha scritto:
Hello, if I do
functions= -t funcname

inside a function=C2=A0(even with emu= late -L zsh) the function funcname is traced even after I exit the enclosin= g function, eg:

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

> trace_funcname
<= /div>
funcname is executed and traced
> funcname
funcname is executed and traced (but I was expecting no traci= ng here)

is this expected behaviour and how ca= n I disable the tracing after trace_funcname has exited without using=C2=A0= functions=C2=A0+t=C2=A0funcname manually, if is possible?
thanks<= /div>

Pier Paolo Grassi
--000000000000a7848b05ce33413d--