Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Redirect output of time builtin
> time_out=$( { time simple command 2>&3 >&/dev/tty } 2>&1 3>&2 )
>
> This isn't useful in a pipeline, though, and you may need to replace
> >&/dev/tty with explicit shuffling of descriptors 1 and 2, and I don't
> promise that interactive commands won't be seriously messed up.
That works well for most my use cases, thanks!
Matthias
Messages sorted by:
Reverse Date,
Date,
Thread,
Author