time command doesnt recognize it's own arguments
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
time (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: time
I was trying to use the 'time' command today to get execution time from a few different programs. It seems to work just fine so long as you just invoke it as 'time COMMAND COMMAND-ARGS'... however I wanted to get more verbose output, and eventually output to a file. From the 'time' man page:
-------
-o FILE, --output=FILE
Write the resource use statistics to FILE instead of to the
for collecting information on interactive programs and programs
that produce output on the standard error stream.
-------
and....
-------
-v, --verbose
Use the built-in verbose format, which displays each available
piece of information on the program's resource use on its own
line, with an English description of its meaning.
-------
so... I tried calling 'time' first like so: "time -v octave test.m"
which returns:
-------
-v: command not found
real 0m0.989s
user 0m0.190s
sys 0m0.070s
-------
I also tried the long version:
-------
$ time --verbose octave test.m
--verbose: command not found
real 0m0.200s
user 0m0.150s
sys 0m0.060s
-------
what??? even the version command doesnt work:
-------
$ time --version
--version: command not found
real 0m0.202s
user 0m0.170s
sys 0m0.040s
-------
This is a significant issue for my project, since I need to output timing data for a lot of different commands, and I really dont want to copy-paste them all manually from the terminal, and redirecting the error stream (for time's info) isnt an option because I need to collect the program output as well, and it would be significantly difficult to extract the timing data from those files after the fact.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: time 1.7-23build1
ProcVersionSign
Uname: Linux 2.6.32-25-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Thu Oct 14 11:51:53 2010
ProcEnviron:
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: time
Changed in time (Ubuntu): | |
status: | Confirmed → Opinion |
I was able to reproduce the issue with xubuntu 10.04
In fact an adapted example from the man page:
time -a -o log ls -l
does not seem to work
autif@xu:~$ time -a -o log ls -l
-a: command not found
real 0m0.606s
user 0m0.490s
sys 0m0.120s