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

bug with for and time



Zsh 4.0.4 appears to lose the time command in the following,

nathan@garibaldi:363>for i in 1 2 ; time echo


but, place the command in a subshell, and it works.

nathan@garibaldi:364>for i in 1 2 ; time (echo)

( echo )  0.00s user 0.00s system 0% cpu 0.000 total

( echo )  0.00s user 0.00s system 0% cpu 0.000 total


nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@xxxxxxxxxxxxxxxx    ::     http://www.planetfall.pwp.blueyonder.co.uk




Messages sorted by: Reverse Date, Date, Thread, Author