I'm using Mac, and I'm trying to time the command execution.
If I do
time echo
it doesn't have any output
But If I do
time ls
it does give me the output of time function
Any idea why that happens?
Update: turns out it's cuz I'm using zsh, with oh-my-zsh
installed. It works well in bash, but no output in zsh. Any idea why?
oh-my-zsh
is causing it. I get the same result using zsh without that installed. I do see time results if I do/bin/zsh -c '/usr/bin/time echo'
though.