Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zero elapsed time in history with certain preexec functions
- X-seq: zsh-workers 24342
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: zero elapsed time in history with certain preexec functions
- Date: Thu, 3 Jan 2008 17:23:11 +0000
- In-reply-to: <071229103309.ZM7557@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <477154ED.70001@xxxxxxxxxxxxx> <071229103309.ZM7557@xxxxxxxxxxxxxxxxxxxxxx>
On Sat, 29 Dec 2007 10:33:07 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Dec 25, 2:07pm, Michael Kaminsky wrote:
> }
> } It appears that subscripting a variable (or indexing into a zsh array)
> } inside of the preexec function causes zsh not to record the elapsed
> } time/duration of the command.
>
> A time is recorded, but it's the wrong time.
>
> The following seems to fix it, but someone more familiar with this part
> of the history mechanism should check my work:
Looks entirely reasonable, without having done more than a cursory
look.
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author