Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Feature Request: Allow skipping zsh statement on return from trap DEBUG
- X-seq: zsh-workers 44868
- From: Rocky Bernstein <rocky.bernstein@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Feature Request: Allow skipping zsh statement on return from trap DEBUG
- Date: Thu, 24 Oct 2019 16:17:27 -0400
- 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==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author