The command "time" doesn't accept any option arguments

Daniel Robitaille robitaille at gmail.com
Sun May 1 03:23:53 UTC 2005


On Sun, 2005-01-05 at 10:24 +0800, Shixin Zeng wrote:
> I tried:
> $time --help
> bash: --help: command not found
> 
> real    0m0.052s
> user    0m0.000s
> sys     0m0.001s
> $time -f "%E real,%U user,%S sys" ls -Fs #An example from `man time`
> bash: -f: command not found
> 
> real    0m0.001s
> user    0m0.000s
> sys     0m0.001s
> 
> Its behavior is completely different from the manual.


$ time --help
bash: --help: command not found

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


$ /usr/bin/time --help
Usage: /usr/bin/time [-apvV] [-f format] [-o file] [--append]
[--verbose]
       [--portability] [--format=format] [--output=file] [--version]
       [--quiet] [--help] command [arg...]


if you simply type "time" without a path, you get the time command built
inside bash.  If you type the full path to the time command, you get the
command described in "man time"


-- 
Daniel Robitaille
 GPG: http://robitaille.fastmail.fm/pubkey.asc (0x5C19F466)
 IM Jabber: robitaille at jabber.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050430/e0080cf9/attachment.sig>


More information about the ubuntu-users mailing list