[ale] gnu time

Björn Gustafsson bg-ale at bjorng.net
Wed Feb 17 13:41:06 EST 2010


On Wed, Feb 17, 2010 at 1:21 PM, Jim Kinney <jim.kinney at gmail.com> wrote:
> The "time" command is a useful tool
>
> What is being called when I exclude the full path? A locate produced lots of
> stuff with "time" in the name but only the /usr/bin/time was an executable.

bash -c 'which time'
/usr/bin/time

bash -ic 'which time'
time is a shell keyword

The `time' that is vexing you is a shell keyword similar to `while',
the difference being that it's only implemented for interactive shells
in bash. Technically it is not considered a shell builtin, but
functionally that's what it amounts to.

-- 
Björn Gustafsson



More information about the Ale mailing list