by boyter · 6y ago · 0 comments
time -v ls
does not work but /usr/bin/time -v ls
does? I don't have enough knowledge of either linux applications or bash to know whats happening to cause this.The shell's builtin keyword for `time` is more limited in nature than the full `time` binary. This is true of a number of other common unix commands as well, e.g. `echo`. The manpage for your shell should describe the builtins functions.
man bash:
If the time reserved word precedes a pipeline, the elapsed as well
as user and system time consumed by its execution are reported when
the pipeline terminates.
man time: Some shells may provide a builtin time command which is similar
or identical to this utility. Consult the builtin(1) manual page. \time -v ls
to skip the builtin version.