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 27514 invoked from network); 30 Jul 2021 22:07:58 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 30 Jul 2021 22:07:58 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1627682878; b=V+I9D2j7cFm9sZ+Smb6uGLKgBiRxH3CIUGtRnCGYMlZateAnHbP+bECeAuurw36/YgloMZ4YaT 6bajiLwEADmLGlRL6jk8c2mq9+f5npBlBQVyn00tIW5YyXwsZetZIGep7nfj1wFylrHJ5ytO/w embyONx1weJV6q9qDvYxv0CI8yj3eaxxIlRkQ2Ue38O07WjL1XGbQxSlOQj512qTFqfp8t2DBf uIBumXW0F095H2rqGHuHOd1J0AMALzY8AOENaYcFowbJ5RY75iFgHDTwqQ+jdcJK+7JgdWlw/y D8nYhrkCYHzjZWEzv/JJLFQHieOt+ZL+f9UdKn/UVmIiCw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f179.google.com) smtp.remote-ip=209.85.219.179; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 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-20200801; t=1627682878; bh=YRjexBrISrGlgMALDIxW3lYfIw0Ih9bm/Lnt57qzZa0=; 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=UYgsN+iSzUObcLe/A6q3/b7AC/cheA1nKyYHVuCg0+M7vBywv/8443p5zXeNNPwAK8QEAHpcsV bW23HUbIfI9L5j4ZJGZ/LKRzab525WhGUqgj3aA+k7IWMTD1fyjE9Xq3Sy5MaynaqBH+RYikBM MXq2TaKY8+VbdxEnlY79egRulaXlmOFwa0f4HGinjqb4WaCrvqg/Z6frvPcPp0UbN2JgpjSEjn iV8T5Sl7OFla80PePriVNg+DPGFX0nJrWAuyGJGIz3RQmfh0emtDpSnCAOCNH4HzqsVrfZW9zi LO3Z6HisvZY9P3BAhUFcUeFND2lVwKcemyaQEHOaDNPzNw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; 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=YRjexBrISrGlgMALDIxW3lYfIw0Ih9bm/Lnt57qzZa0=; b=ayxqWXVrMQR/AQdv4t0Lyjin3P ZWzULud3JSTETRfeBt7Foh3wyNQgUjbYfJoYKpEPnrH74SzbeBZH85gxCEbPYGqmiSuaBMNOy1Eo4 YZsidsCUjHfGZ7wFgQ1uVmviboeXdCsxzDWvX/CxiGltj4w7fV0s7tKCow59sfvGhvOSLgBb4ZiIN EvmQTlSh2Z8tNhph7RaXZRvvTGntivmLre2WtmNK1X25T66n7Xha4DgfG1bry9eU7zQa3dT1d/o5i gTajyBABIlgQYhdiaQV1XHaL5OIJwYjEEa+dOChVKrebu5piZsOz6nKxappNTxwaB5bqZwPb6QdGI jx2UVohQ==; Received: from authenticated user by zero.zsh.org with local id 1m9afc-000ArK-RO; Fri, 30 Jul 2021 22:07:57 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f179.google.com) smtp.remote-ip=209.85.219.179; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yb1-f179.google.com ([209.85.219.179]:36510) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1m9aem-000A7l-0X; Fri, 30 Jul 2021 22:07:04 +0000 Received: by mail-yb1-f179.google.com with SMTP id j77so16345414ybj.3 for ; Fri, 30 Jul 2021 15:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YRjexBrISrGlgMALDIxW3lYfIw0Ih9bm/Lnt57qzZa0=; b=jHqhL0w8crB6WYaMRac8mDlX4eRvwlfAKoICJbp5XBcpoJjrRAryqXO+0q1xh9ttgw I8hLdpqoEqK9/lJZum1Y/PfsSKcUjLC9vmkVJhAWjfX8ZCHvcvqH6b2K/GFe0pHVRA9K 4pv823jgEzZy3AiH4HyoXZj6EJa0x7YrebtMyEw0ZIOhmAHOa42XLa4rCYQ74Xh0FR/b oBxZzd4CvFCz4y4quzqNSg/THd1594qTrtrK8CwKuiUlJD0wWBHoJPV7LITpFOsf/abB FQGT8W74q90YkpAqnwyJT62NJow2bZ15l+2Ph5FAAgR9/55FlhhndhrllwRX8HwAiWyu Ccew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YRjexBrISrGlgMALDIxW3lYfIw0Ih9bm/Lnt57qzZa0=; b=k3o6bLl9cZtxl1VwXLwguKNGs7K3LVrlyMLmjiXeSRKAbtHJVyEyuZQPuhN3W+vJas YE5arOSFRM7ijF13ixECFoQNcPt2XJGwGwhbZQvdNdibesHc+j4JgwkgTIdiq8QJwTh2 IMsntbs7HjK/0laJ7ZW70SLS2lGIFlfe7pI/+KtcYCPb2VhAa+Z8RZyEYKfeXeBm0ZwW u+2vHZcYI+33R2oq4R1LIGDtmyGblM4LwhwoMze31iDKcqaMA6NlTyKdxN8t9mFNR7Mk +hQIVav02/rfOV+PKkrwqmsyL6J1xEsenFxwgCd2ZBvM0y4k51LayRsIOzTLdm0D1veJ k5qA== X-Gm-Message-State: AOAM532GcjklQrpy4/4pEk82mpe7aRMHHFmSCd20t+oWZLic8tI3El+4 QeYVuEVR3+wMwSCvvrgbu8IHlVY95UxRp2zFdll2Tw== X-Google-Smtp-Source: ABdhPJxX6ipMKYvEQiUJzhhL7h86sar9djbkSaZOJ7x7F8V/Cv6rvShjQXnL4MDeWOxESDbm3QKtNopKpCRyrnIiZko= X-Received: by 2002:a25:dc12:: with SMTP id y18mr5910672ybe.69.1627682822727; Fri, 30 Jul 2021 15:07:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Fri, 30 Jul 2021 15:06:51 -0700 Message-ID: Subject: Re: Set -x for scripts globally / recursively To: Zach Riggle Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 26824 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 Fri, Jul 30, 2021 at 10:39 AM Zach Riggle wrote: > > Is there any way to cause the "-x" / xtrace flag to be passed into > sub-scripts without doing so explicitly? The only way to do this infallibly is to put "setopt xtrace" in /etc/zshenv. If the scripts are NOT run with the -f flag, you can place that command in a file named ".zshenv" in a temporary directory, and export ZDOTDIR to point at that temporary directory. The only other option is to edit the #! line of each script and change -f to -fx.