From: Rocky Bernstein <email@example.com> To: firstname.lastname@example.org Subject: Feature Request: Allow skipping zsh statement on return from trap DEBUG Date: Thu, 24 Oct 2019 16:17:27 -0400 Message-ID: <CANCp2gbJs=hW_Pu1AKAKDwhN_5LpFcVG634TGkpas5VDbg8nWg@mail.gmail.com> (raw) [-- Attachment #1: Type: text/plain, Size: 784 bytes --] A while ago I wrote a debugger for zsh called zshdb <https://zshdb.readthedocs.io/en/latest/>. 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.
next reply index Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-10-24 20:17 Rocky Bernstein [this message] 2019-10-25 17:52 ` Stephane Chazelas 2019-10-26 1:37 ` Rocky Bernstein
Reply instructions: You may reply publically to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CANCp2gbJs=hW_Pu1AKAKDwhN_5LpFcVG634TGkpas5VDbg8nWg@mail.gmail.com' \ --email@example.com \ --firstname.lastname@example.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
zsh-workers Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers Example config snippet for mirrors Newsgroup available over NNTP: nntp://inbox.vuxu.org/vuxu.archive.zsh.workers AGPL code for this site: git clone https://public-inbox.org/public-inbox.git