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 27069 invoked from network); 13 Oct 2021 03:36:15 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Oct 2021 03:36:15 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1634096175; b=WRSpuNnI4U3+m3jRwW+9ms2CqU43qalfQShadDMZS9YdzU/C5WqAT4mnsJiNJt15Z9yuIZhUCM y456AbnOlmAE6nqfCxB8eCEhx6hibvZLR+18dM0oH29jZCdKIrFikfrwGczahjsUYSt2RHL2pa LJlOLCS08z1aEji8+JyJc+re0+r2B6/bsvO8C+wN1HYIfI+Tv4WkXDzS6J4tf1E7GI6cuwGJ5k pg9CtW+Ggh7in3xHWrT6OOXa1jUwlgQVVXXNW+HM8udMHP+ZMqy77i+cHaDaWAjLs70XMCfG7E ov9ifPUQ9JGbHGVq7c5QsaOw/2+efSSEMRSSTxupp0RjCw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f172.google.com) smtp.remote-ip=209.85.219.172; 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=1634096175; bh=8Kbj9dO3s3R8grVbcPxVmixAqxaS9Rh2q4GGFpsuhO0=; 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=qKx/5zI/Ca+EUAt77AS5cxleX7HK9upQ3BZTnRkhUsFbc5OjnMDtrfzyxCvbn7e9QtJm7o28LM 7445BFElp/syi2W5hltCw7wh/y4OJuX0j8jL5pL0w6ytzW3jILqJD2illkVbkz0yl09zt4CBqm kAJmdqgYOvghnBjuetmnGh+qDLUA69MSDBpeVGXtGB04Dv6hXmacAz0SBnLeiGzge4y7LsSnMl dASn5qcTLYWJ2gTF3LLiC4UN2wOIw8x4Q44AfimRMoJPJsECqnDEbiOiXYoDvkTGcQcbH5eIhm xfO/WdawucjQ6av+GBtZLvA8D4Ocf4W+mOM7qwsZqnizDw==; 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=O3uNyi7/uujKNheq6oLiKl9Jug2T1Tv2CVn9csH2JJo=; b=XL7ytb580LrEXtzZtiUogu2AWO 5+3GPtMsLQjlmwB35NUsLlRMOat7kjcYMzdoBERMPeINwwd6Wu7hdY24xx7GMFoD62eWQky6RVClW PpfG+FjBTKCWYmwUgvgg4zyW8yLQVxZESuG+Hqq4BCIivmKTM9p9BKFfbUa6tlV/9mYwMRRrnqz2q aUFR3FI1hKo2ekKaUkl5KM2i6oe+CYQuHEBMVp4CVZZOeehFINI9xG9X0TzIakvrAIRUtQj8ojlo2 PFheWHkFVgH3uuUa/4S6BeTB0wj81u/ngLjNrQnlBDTCSrvbDFSzCw4pJ/QxULuKxONMDw9iD5eMD 7v3uLmdw==; Received: from authenticated user by zero.zsh.org with local id 1maV3u-0002iS-DT; Wed, 13 Oct 2021 03:36:14 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f172.google.com) smtp.remote-ip=209.85.219.172; 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-f172.google.com ([209.85.219.172]:42841) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1maV3N-00020f-Cs; Wed, 13 Oct 2021 03:35:43 +0000 Received: by mail-yb1-f172.google.com with SMTP id u32so3002648ybd.9 for ; Tue, 12 Oct 2021 20:35:41 -0700 (PDT) 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=O3uNyi7/uujKNheq6oLiKl9Jug2T1Tv2CVn9csH2JJo=; b=C1G8XRAYu8z+200jz31SElmaWVO67wrjGm6V0JEf1VFSy50cvKwC9/6XznKFXWf09b 4ZfBX8pEfXHCt50J9wGJF7iJWkqYSxaK89yNCeC6Ollx5LJd8a+j/Ka8CTvVCtOirVNH Ygdhm4wBM3V0Xrl89b24CGcTcWp0yecmvHBUUVoDxZuO0d/ANZfJg5gT6YU/HW0FiMmQ Gga0gqHPQZw2AE+nkLttimGxkDBwJLaEbWzTHllJZflCeyMONyTAutvHxsDazMfRgA+Y ut1SqkS9JeTAS8iBgloFPUVDBJW/h/n6auRpZzHgDQ/iVIDI9UDl6/G6SppIPzoTpdjs r6rA== 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=O3uNyi7/uujKNheq6oLiKl9Jug2T1Tv2CVn9csH2JJo=; b=vvZDWn6p91vUy8O90+1B+OBbR015cbs/cMnd7u005RbdHrBFtcKUDNFAACmdha1j4c 6IwUzX3Z+9fKV1Www90IlPzn+rT7kXyssvByipJUQYre9j8TUfgbYyro26GcnhnkQVLd j0C6K1zyRfmN2wv6Dhy1lOcO6OPmUtfcm/CTtwRhSrxXewLsOMCqT/ctfVbqglaCEQR4 BF8Gw1x2No41IeX/XRRE9hrm1PlXw0/eZI0NkJQOsaGAVgwNNmgQSZ6d4v3MCxCBfxvg MLRmrSPcnS3dj20Op76jMbeOqKh4qAgjeBKb2/2N9OhzOmihRmxYt423r9czbQg602uN vCsg== X-Gm-Message-State: AOAM533I6dMai4oM1Pi1IevTmBC/cCKPALUTLZT0oLCwDmKBzNfh3vv2 XYj4PoynJyHR+yOPGh5mPCWAtjHCMmQKRoLCj/uGenD7tEKyEg== X-Google-Smtp-Source: ABdhPJyOzLEXAn368/I0ooP2t8eNLLY3jREKzzueiIhCBnaS4mHzbaRm2cUo41F5OjC0idpA+sIfjbQmvTHGClLfmAs= X-Received: by 2002:a25:3487:: with SMTP id b129mr5369347yba.249.1634096140102; Tue, 12 Oct 2021 20:35:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Tue, 12 Oct 2021 20:35:29 -0700 Message-ID: Subject: Re: functions -t To: Pier Paolo Grassi Cc: Zsh-Users List Content-Type: text/plain; charset="UTF-8" X-Seq: 27231 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 Tue, Oct 12, 2021 at 8:07 PM Pier Paolo Grassi wrote: > >> > trace_funcname >> funcname is executed and traced >> > funcname >> funcname is executed and traced (but I was expecting no tracing here) >> >> is this expected behaviour Yes. Tracing of individual functions is not an option controlled by setopt. Only the latter are restored by using "setopt localoptions". >> and how can I disable the tracing after trace_funcname has exited without using functions +t funcname manually, if is possible? It's not clear what you mean by "manually" ... so how about: trace_funcname(){ emulate -L zsh # or not { functions -T funcname funcname } always { functions +T funcname } }