bug in time?

Luciano Miguel Ferreira Rocha strange at nsk.no-ip.org
Sat Feb 7 23:16:02 UTC 2004


On Sat, Feb 07, 2004 at 11:41:44PM +0200, m l wrote:
> 
> 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?

Bash uses its own internal time command, so it gives an error when you don't
pass the comand to be executed to time.

You can get bash's time help with:
1. man bash
2. help time

System's time is also available by specifying its full path:
/usr/bin/time cmd

Regards,
Luciano Rocha





More information about the users mailing list