Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 7059

Summary: time command - output inconsistencies ?
Product: Gentoo Linux Reporter: Rigo <rigo>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: minor CC: vapier
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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