TEXT   85

zsh-time

Guest on 30th April 2022 09:16:37 AM

  1. Using zsh on fedora 31 x64, time and /usr/bin/time
  2. give different outputs - why? Also `time -h` `time --help`, and `help time`
  3. do not work.
  4.  
  5. ```
  6. [shlomif@localhost ~]$ -t homepage
  7. shlomif[homepage]:$trunk$ time sleep 2
  8. sleep 2  0.00s user 0.00s system 0% cpu 2.002 total
  9. shlomif[homepage]:$trunk$ /usr/bin/time sleep 2
  10. 0.00user 0.00system 0:02.00elapsed 0%CPU (0avgtext+0avgdata 1960maxresident)k
  11. 0inputs+0outputs (0major+75minor)pagefaults 0swaps
  12. shlomif[homepage]:$trunk$ help time
  13. zsh: command not found: help
  14. shlomif[homepage]:$trunk$ time -h
  15. zsh: command not found: -h
  16. -h  0.00s user 0.00s system 78% cpu 0.001 total
  17. shlomif[homepage]:$trunk$ time --help
  18. zsh: command not found: --help
  19. --help  0.00s user 0.00s system 76% cpu 0.001 total
  20. shlomif[homepage]:$trunk$ declare -f time
  21. shlomif[homepage]:$trunk$ builtin time
  22. zsh: no such builtin: time
  23. shlomif[homepage]:$trunk$ alias time
  24. shlomif[homepage]:$trunk$ which time
  25. /usr/bin/time
  26. shlomif[homepage]:$trunk$

Raw Paste


Login or Register to edit or fork this paste. It's free.