Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7059 - time command - output inconsistencies ?
Summary: time command - output inconsistencies ?
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-26 11:18 UTC by Rigo
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rigo 2002-08-26 11:18:47 UTC
*  sys-apps/time
      Latest version Available: 1.7-r1
      Latest version Installed: 1.7-r1
      Homepage: http://www.gnu.org/directory/time.html
      Description: A command that displays info about resources used by a   
      program

Just a little thing I noticed; when I do:

# time
bash: syntax error near unexpected token `time'
# cd /usr/bin
# ./time
Usage: ./time [-apvV] [-f format] [-o file] [--append] [--verbose]
       [--portability] [--format=format] [--output=file] [--version]
       [--help] command [arg...]

lappy bin # time echo hello
hello

real
0m0.000s
user
0m0.000s
sys
0m0.000s
# ./time echo hello
hello
0.00user 0.01system 0:00.02elapsed 35%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (108major+11minor)pagefaults 0swaps

Is there something I miss or am I needin' sleep again ?



Regards, Rigo
Comment 1 Maurizio Disimino 2002-08-26 11:41:22 UTC
time is a bash-builtin
/usr/bin/time is a GNU enhanced time version.
Comment 2 Rigo 2002-08-26 11:47:10 UTC
So

# time
bash: syntax error near unexpected token `time'


Is normal ?

(So...it's...needin' sleep ;)
Comment 3 SpanKY gentoo-dev 2002-08-26 20:57:38 UTC
comment #1 is really all that needs to be said