bug-bash
[Top][All Lists]
Advanced

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

Odd bash behaviour with time:


From: bugs
Subject: Odd bash behaviour with time:
Date: Fri, 31 Oct 2014 14:01:12 -0400 (EDT)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)

$ 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]