bug in time?

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Sat Feb 7 21:56:47 UTC 2004


Am Sa, den 07.02.2004 schrieb m l um 22:41:
> hiya,
> while running bash shell  :
> 
> [feenixxi at sandbox]$ time
> bash: syntax error near unexpected token `newline'
> 
> [feenixxi at sandbox ]$ time --help
> bash: --help: command not found
> 
> real    0m0.001s
> user    0m0.000s
> sys     0m0.001s
> 
> time command works fine in both tcsh and csh, what's wrong with bash?

No bug, read "man time". The correct syntax is "time command", like:

$ time locate foo.bar
 
real    0m0.179s
user    0m0.110s
sys     0m0.020s

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 1 (Yarrow) on Athlon CPU kernel 2.4.22-1.2149.nptl
Sirendipity 22:54:59 up 7 days, 21:55, load average: 0.06, 0.18, 0.14 
                   [ Γνωθι σ'αυτον - gnothi seauton ]






More information about the users mailing list