From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,URIBL_SBL,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id b3ec1132 for ; Thu, 24 Oct 2019 20:18:25 +0000 (UTC) Received: (qmail 27248 invoked by alias); 24 Oct 2019 20:18:16 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44868 Received: (qmail 29247 invoked by uid 1010); 24 Oct 2019 20:18:16 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f177.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.0/25608. spamassassin: 3.4.2. Clear:RC:0(209.85.208.177):SA:0(-0.3/5.0):. Processed in 2.720247 secs); 24 Oct 2019 20:18:16 -0000 X-Envelope-From: rocky.bernstein@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.208.177 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=+258tItGBo4d9bU6/ShitaQZHpWZh4h5eH/daCCnLFk=; b=HLZYgOlOFJlz+fyGDSg0vgE/kXwZzzT/IUIsV47lxehTYGYt7iRlka63hQtYgt3MxO h8IboSx7wfQjz5fxhk5YrZAQnTaH/KF5ZgmTLrM7tEqUaDXym5IIBA8Hn+gykb2Md0+M coPCqek0dsDV2SUSzm2EwKrW4yjuO4+wQVS2s/MqTNtPDJr2P1aR1hgHFOySEpxijf3W hIcDq7EEzVS7BDUPlYyoG5IPrh1HhCaH6D33qqfI+5F3MfudrTe4IzhqALxSPXDuM5aP lOTDv2/J5PackOFOKYMSZ9O73ETtkGg5QiVSCCdByu40T3Ow985rpx95PrK3+XFXHQ0M o2cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+258tItGBo4d9bU6/ShitaQZHpWZh4h5eH/daCCnLFk=; b=guJWEw4P+OrAwDfEwZActCYqAuqWabRLs/wNMdb0GgRlour0ZpUQA/p3ntEFYbiISo Zl9EkLULEhbR6/ttqTLHQhFcZBC8/2L+DpzNEzyQlTic3ZGL9LGuLTIenP4v8LHQVjFJ 20FEK7YXPopLiMye7gNcJw7WvvYyXoG9g7enDbPj2dWk8bHcnRg781i9vZQ7+y448xnX g10fpUlQmz0e8xCegUaywbweR/u61p1xge84JnR3J2ip4h5Y9mc4vhXZhlXg2uMk4tDB Ya7YXyuyPWzOflTIZ47ko3ZhJrvp9EoKV8zVpM0UgknpaxBHgitS58RsFBcoiZrsRZ3/ 661g== X-Gm-Message-State: APjAAAXGOtMo2VHaQKDXN0BOZWwA+yhwhNaVMwdWwKNpeaQsaBmtU9+b ldOEpQC4yG0FdZMAAc0f1TcUNEs9NjViQXngdtYUlphA X-Google-Smtp-Source: APXvYqw4QQQ4qnMgk7uAtpX2rC/G8rhDdKC0z8F3ZH1lQlezEzBJkfbo4it205PPObuXw7CTVbXgXfxS++z1qb/UUEI= X-Received: by 2002:a2e:9942:: with SMTP id r2mr3324533ljj.168.1571948259155; Thu, 24 Oct 2019 13:17:39 -0700 (PDT) MIME-Version: 1.0 From: Rocky Bernstein Date: Thu, 24 Oct 2019 16:17:27 -0400 Message-ID: Subject: Feature Request: Allow skipping zsh statement on return from trap DEBUG To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="00000000000097a2270595adb9b1" --00000000000097a2270595adb9b1 Content-Type: text/plain; charset="UTF-8" A while ago I wrote a debugger for zsh called zshdb . See also https://repology.org/project/zshdb/versions . A feature that is missing in the debugger and that is available in the corresponding debugger for bash, bashdb, is the skip command. This command skips over the upcoming statement to be executed. The way this works in bashdb, is that if the debug hook returns with a nonzero value. The way BASH works is that if the trap DEBUG hook returns a nonzero value, BASH skips statement to be run. Thoughts about extening zsh so that it too will skip the upcoming statement if the zsh trap DEBUG hook return a non-zero value. Or more generally some means by which a DEBUG hook can indicate to zsh to skip the upcoming statement? Thanks. --00000000000097a2270595adb9b1--