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 21629 invoked from network); 20 Apr 2022 19:47:45 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 Apr 2022 19:47:45 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1650484065; b=aVGETgWYAkrOmED5GlLo0pFhum1mfCTk6g9Y8XWgg5muFrMxhLy6H7Xs25nTZoSSR7YP0z1ZRK k0UKTBHzPJmlQhlp3wUW71HVqO9LZUGIMuhniAH+BmvJp9P841Q/XeLn+RV2sa2KreEAZahNvd HDtzr5tdAkEds03Vr2e6U4XgBzEUofpd6mSVjm+qTL4ztxxtl/8czQPzdNL0J/zc0aOYl1Tul1 tINjhig9F0rIOPPnRaLndA2rF/GCP0/9erb3yL9MBr0g25rd4QRhZx06KllUTT0/2s7vqKI5rV MaGi9ekpuwWefSbwLcveDgOZvGFO9b59zLtb3cuWmKzepw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-wm1-f53.google.com) smtp.remote-ip=209.85.128.53; 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=1650484065; bh=Wq8LPeu0+MWWw+WcUY5I1ZCekQUY0ut0Ub++xTOQFnU=; 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=ZcHBXY/JRunG56zbK7VcOFUbyN288I2Es0T0eXa0df/XRiqyFaBkdvuuEI9IM9S1whONYyq1hb O6jtKAy9I0322V9q0Z0uX0AjgbziOwZEsukLgjmGz5ls2AA6HUocnYMAg2VSACCUVpcB7lHhxI 0a2UzkKYTngMfF4dRSxq39g7z4cC0QapeUWy0VKAolELM4RWfh+oHVvq5MZPtZ5Ypf5ieRkgK/ SFl980wAwy5Hh7W3xS9h8qSokOr8F8OLmKArlve7W8qMp3AuuRGbxSh5l5PnBVCol0AQFkXOcH kcESoW2dVb2fiLw+l5eHoBLPDYYMQqMZ9+ZzJOGByv1g5w==; 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=Wq8LPeu0+MWWw+WcUY5I1ZCekQUY0ut0Ub++xTOQFnU=; b=Swh/pt0i3UeeCJ1+9tQ1aPufuj q7CH29f3PhMldCSx9ut1HjC35WNKFwyc79q1FXoxqrVvTjxR9DnWBqFza9NC5Xuxxss83yJYKbB0l 3pfrs5bAhZwNYLPG/Hhf70oAdrMonRXqlUQTWPE31dyZs7T+aLtvr882XQcu8mz+y3RjfPaDOo67j bFkgXTJzWvgudThbojVDjkRrgLOyCQIJmnqfbeQpw3izBweNsOED8ocLvubjv+va+PcYd/7st3ikR 0/kSi3ZXutLyn3tLvqq4DwNyORuaIBs7Aaf0/AaOLjflqCMYhoenIKbLwciCPvielA50jmPpqvvHz ln0Tp7mw==; Received: from authenticated user by zero.zsh.org with local id 1nhGIi-000Fk7-Tr; Wed, 20 Apr 2022 19:47:44 +0000 Authentication-Results: zsh.org; iprev=pass (mail-wm1-f53.google.com) smtp.remote-ip=209.85.128.53; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-wm1-f53.google.com ([209.85.128.53]:55138) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nhGHs-000EzA-Qt; Wed, 20 Apr 2022 19:46:53 +0000 Received: by mail-wm1-f53.google.com with SMTP id bg25so1178369wmb.4 for ; Wed, 20 Apr 2022 12:46:52 -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=Wq8LPeu0+MWWw+WcUY5I1ZCekQUY0ut0Ub++xTOQFnU=; b=LaXR1yJxES0oCl+pO3QAoRcIVwhu3QUYC36mpBh0hyjo/wBEjPuOE/HGttM9AKiWZw 9KaM3eWCfvB6fM0ekFPiP0pIzxRmf/K4rMjeNU2sKQ+Gplu0Ese2htP4UrFDq7yZrBzA Q2xLSPR+NLG9NuLx8Dc2ZgtLqu8PbJsGaVIBg9LlnxR2/qiNMb1LQKAmj7ynN5Jllba6 DJA5cptkBksqsb2C0QUdb4nOlTrGBUDskRyMt2NNpfsqKjhcEWrIWArcdDjkFTp5eiHj RxICpe8FASuSjzcTBoX84GW8S4Wgyc8g/oNBCecegYHJ5VEJN8jjy10v6kpQAX0FVSOg USEQ== 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=Wq8LPeu0+MWWw+WcUY5I1ZCekQUY0ut0Ub++xTOQFnU=; b=RMw0Jb/NYSirxfDxRoJD8m7jlSsMGddYXn3Ij9uOnm3qwjp3NUQMjqE7L1iZFlQG6a z2cwH9u0x5VzjyKsrZBokvcTyv89eqwm627TN8tLclS4SmFemLS3dLsyyWbNC5iQssW9 sxCLBec3+/Mz3lLVlopfGaYcB45zXp72aT2HEJxXEpM7Npz8P9fiGUofM6t/bCIIZi7i hm0JprnXUXK9Dmh5Y3Bgcv2qVkZuMgrrz6QYcHOwMACEVGV0DMyJRts4DZuMQLY1JbL8 N7zKlGPtzU3xC8e/NdCs+LC1VBTJ8es6VGfkpzltEqaQLcOdeHO5E9Ca9kVHG6jW2wCq vf8A== X-Gm-Message-State: AOAM531NmPr1DhTherkhBt7roU/hCPl+765l+9Z+5eQxGpSuvf1aVvid TTeZf2wm76mtsG+H0YlEmjlbZELH5+sTOqXy2CFaDWeyVR8= X-Google-Smtp-Source: ABdhPJw4V+uDgO8RgJcdOkNLvvB90XIj99ZLYOWWpJlSVxcz4YMKoN8kMUsj0Z7//2oR8krp1J9y0/Nwf32pLSDioXw= X-Received: by 2002:a05:600c:206:b0:38e:b6b4:a2d6 with SMTP id 6-20020a05600c020600b0038eb6b4a2d6mr5211482wmi.156.1650484012123; Wed, 20 Apr 2022 12:46:52 -0700 (PDT) MIME-Version: 1.0 From: Zach Riggle Date: Wed, 20 Apr 2022 14:46:41 -0500 Message-ID: Subject: TRAPDEBUG vs zsh -x To: Zsh Users Content-Type: multipart/alternative; boundary="000000000000400ac105dd1b41c1" X-Seq: 27676 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: --000000000000400ac105dd1b41c1 Content-Type: text/plain; charset="UTF-8" Hello all! I'm quite fond of debugging with a custom script using TRAPDEBUG, but the limitation is that the provided arguments are before the full command has been expanded. When using "zsh -x", we see all of the lines after they've been fully evaluated, but there's no way to add syntax highlighting sugar to these lines. Are there any TRAPXXX functions which are passed the same text as "zsh -x" will emit (sans the $PS4 expansion). Thanks! *Zach Riggle* --000000000000400ac105dd1b41c1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello all!

I'm quite fond of debugg= ing with a custom script using TRAPDEBUG, but the limitation is that the pr= ovided arguments are before the full command has been expanded.
<= br>
When using "zsh -x", we see all of the lines after = they've been fully evaluated, but there's no way to add syntax high= lighting sugar to these lines.

Are there any TRAPX= XX functions which are passed the same text as "zsh -x" will emit= (sans the $PS4 expansion).

Thanks!
Zach Riggle
--000000000000400ac105dd1b41c1--