Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zero elapsed time in history with certain preexec functions



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