bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd bash behaviour with time:


From: Piotr Grzybowski
Subject: Re: Odd bash behaviour with time:
Date: Fri, 31 Oct 2014 23:00:22 +0100

Hi,

 it is actually built-in time that you run:

help time

if you want to run time from /usr/bin:

/usr/bin/time

cheers,
pg


On Fri, Oct 31, 2014 at 7:01 PM,  <bugs@m8y.org> wrote:
> $ time;
>
> real    0m0.000s
> user    0m0.000s
> sys     0m0.000s
> $ time;ls
> bash: syntax error near unexpected token `ls'
> $ /usr/bin/time;/bin/ls Usage: /usr/bin/time [-apvV] [-f format] [-o file]
> [--append] [--verbose]
>        [--portability] [--format=format] [--output=file] [--version]
>        [--quiet] [--help] command [arg...]
>
> It's the 2nd one that surprises me.
> Why would time; succeed but time;anything fail  ?
>
>
> --
> ----------------------------------------
> Free Mickey!
> http://randomfoo.net/oscon/2002/lessig/
> http://www.law.duke.edu/cspd/comics/zoomcomic.html
> My key: http://m8y.org/keys.html
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]