Bug 49482 - time does not take arguments
Summary: time does not take arguments
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: bash
Version: 7.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Phil Knirsch
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-07-20 00:17 UTC by Dmitri A. Sergatskov
Modified: 2015-03-05 01:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-07-23 12:17:05 UTC
Embargoed:


Attachments (Terms of Use)

Description Dmitri A. Sergatskov 2001-07-20 00:17:19 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.3-12smp i686)

Description of problem:
time does not take any arguments e.g.:
[dima@cholla dima]$ time --version
bash: --version: command not found

real    0m0.002s
user    0m0.000s
sys     0m0.000s


How reproducible:
Always

Steps to Reproduce:
1.install time-1.7-13.rpm
2. run 'time --version'
3. see error message
	

Actual Results:  On RH7.1
[dima@cholla dima]$ time --version
bash: --version: command not found

real    0m0.002s
user    0m0.000s
sys     0m0.000s
[dima@cholla dima]$ rpm -qf /usr/bin/time
time-1.7-13


Expected Results:  On RH6.2 system:
[root@sage /root]# time --version
GNU time 1.7
[root@sage /root]# rpm -qf /usr/bin/time 
time-1.7-9
[root@sage /root]# 

Additional info:

pretty much stock rh7.1 with all recent updates.

Comment 1 Florian La Roche 2001-07-21 07:22:57 UTC
you are starting the bash builtin version of time. I am not sure if the
absence of --version is a bug or not..

Florian La Roche


Comment 2 Koen Hillewaert 2001-07-27 14:22:31 UTC
the same is true for the tcsh version. time does not take any options at all.
Even (at least some of) the examples cited in the info pages do not execute.

Comment 3 Phil Knirsch 2002-07-23 12:16:59 UTC
Well, time is a reserved keyword in bash and additionally an internal command,
so if you want to use the binary /usr/bin/time you need to say so.

Read ya, Phil


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