Bug 142474 - "time" command does not function according to man page
Summary: "time" command does not function according to man page
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: time
Version: 3.0
Hardware: s390
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Florian La Roche
QA Contact: Ben Levenson
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-12-09 22:14 UTC by Mike Reeves
Modified: 2007-11-30 22:07 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2004-12-13 02:29:04 UTC


Attachments (Terms of Use)

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.



Note You need to log in before you can comment on or make changes to this bug.