Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: preexec hook: possible enhancement?
- X-seq: zsh-users 11820
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: preexec hook: possible enhancement?
- Date: Wed, 05 Sep 2007 10:14:20 -0700
- In-reply-to: <20070905163417.GB26710@mastermind>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20070905163417.GB26710@mastermind>
On Sep 5, 12:34pm, Matthew Wozniski wrote:
}
} While we're on the topic of using the preexec hook to set the
} titlebar, I'd like to bounce something off the list and see if 1) it's
} possible and 2) people would consider it useful. So, would it be
} possible and/or useful to have the preexec hook (or some other, new
} hook) fire once for each pipeline in the current command, rather
} than just once using the entire current line?
The TRAPDEBUG function is called at these points in the execution,
if you "setopt DEBUG_BEFORE_CMD". However, I don't remember offhand
whether it's possible to access the command text that is about to be
executed. The documentation for TRAPDEBUG is pretty sparse.
(Also DEBUG_BEFORE_CMD requires a very recent zsh version.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author