Bug 49482

Summary: time does not take arguments
Product: [Retired] Red Hat Linux Reporter: Dmitri A. Sergatskov <dasergatskov>
Component: bashAssignee: Phil Knirsch <pknirsch>
Status: CLOSED WONTFIX QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: koen.hillewaert, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-07-23 12:17:05 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 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