bug-bash
[Top][All Lists]
Advanced

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

Re: Reserved words and the type builtin


From: Chet Ramey
Subject: Re: Reserved words and the type builtin
Date: Mon, 21 Jul 2003 17:00:49 -0400

> Bash 2.05b, Red Hat 7.3.
> 
> The `type' builtin checks arguments in the order:
> alias, keyword, function, builtin, file
> 
> But it seems as if command parsing uses the order:
> keyword, alias, function, builtin

It's actually on the `time' keyword that behaves this way.  It's a bug;
it will be fixed.

> On a slightly related, "philosophical" issue, why is time a reserved
> word rather than a builtin?

So one can time pipelines and other shell compound commands.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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