Saya di Ubuntu.
Lari time
tampaknya menampilkan hasilnya ke sesuatu selain STDOUT
atau STDERR
. Inilah mengapa saya pikir begitu:
[siminm@amide ~]$ time echo hi
hi
real 0m0.000s
user 0m0.000s
sys 0m0.000s
[siminm@amide ~]$ time echo hi >/dev/null
real 0m0.000s
user 0m0.000s
sys 0m0.000s
[siminm@amide ~]$ time echo hi 2>/dev/null
hi
real 0m0.000s
user 0m0.000s
sys 0m0.000s
[siminm@amide ~]$ time echo hi 2>&1 >/dev/null
real 0m0.000s
user 0m0.000s
sys 0m0.000s
[siminm@amide ~]$ time echo hi &>/dev/null
real 0m0.000s
user 0m0.000s
sys 0m0.000s
NAMUN
[siminm@amide ~]$ /usr/bin/time echo hi 2>/dev/null
hi
which time
ia kembali/usr/bin/time