Bug 142474

Summary: "time" command does not function according to man page
Product: Red Hat Enterprise Linux 3 Reporter: Mike Reeves <mike.reeves>
Component: timeAssignee: Florian La Roche <laroche>
Status: CLOSED WORKSFORME QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: s390   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-13 02:29:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike Reeves 2004-12-09 22:14:07 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; IE 6.0 
SP1 (FID r3.0); .NET CLR 1.1.4322)

Description of problem:
TIME
(1)                                                                
TIME(1)

NAME
       time - time a simple command or give resource usage

SYNOPSIS
       time [options] command [arguments...]
...

But when I use an option described under "GNU OPTIONS", it gives the 
following response:

[root@ldal9001 oss]# time -o testfile ps -ef
-bash: -o: command not found

real    0m0.013s
user    0m0.010s
sys     0m0.010s

Here is the shell version:

[root@ldal9001 oss]# bash --version
GNU bash, version 2.05b.0(1)-release (s390-redhat-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.

It would be very nice if "time" functioned as documented in the man 
page. Can this be fixed?

Version-Release number of selected component (if applicable):
time-1.7-23

How reproducible:
Always

Steps to Reproduce:
1.time -o testfile ps -ef
    

Actual Results:  [root@ldal9001 oss]# time -o testfile ps -ef
-bash: -o: command not found

real    0m0.013s
user    0m0.010s
sys     0m0.010s

Expected Results:  the following should be written to file "testfile"

real    0m0.013s
user    0m0.010s
sys     0m0.010s


Additional info:

Comment 1 Florian La Roche 2004-12-13 02:29:04 UTC
One is the /usr/bin/time application, the other is the bash builtin
called time. "help time" for a short intro or the "man bash" manpage
for more info.